I am new to .htaccess programming and Im looking for some assistance.
I have a large site im working on and I cant seem to figure out the https/http redirects correctly
Everything in the home directory needs to be http except contact.php and login.php which should be https
I also have 3 directories that need to be all https admin, clients, invoices.
I have been working with code from everywhere and I have been unable to figure out the system properly.
I have been using the following code in the parent directory .htaccess file.
I have a large site im working on and I cant seem to figure out the https/http redirects correctly
Everything in the home directory needs to be http except contact.php and login.php which should be https
I also have 3 directories that need to be all https admin, clients, invoices.
I have been working with code from everywhere and I have been unable to figure out the system properly.
I have been using the following code in the parent directory .htaccess file.
Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} admin
RewriteCond %{REQUEST_URI} clients
RewriteCond %{REQUEST_URI} invoices
RewriteRule ^(.*)$ https://www.website.com/$1 [R,L]