Carnt Secure Site

Here is the code and I cannot seem to secure the site:

RewriteEngine on
Redirect invoices/setup http://MYDOMAIN/
RewriteBase /invoices
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.php [L]

I think you are missing a slash:

Redirect /invoices/setup http://MYDOMAIN/

No still takes me to the setup process

And the setup process is started from the URL ‘/invoices/setup’?

Yes, carnt seem to secure it


Just a note , since there are two files i the directory named htaccess and the other .htaccess (with the pre dot) which one did you edit ?


Site is now secure, I know they is the same file but one is missing the . (DOT) I had to survive site by putting the full url of the setup in the .htaccess file.