I currently use the following code in my .htacess to redirect non www to www and to redirect /pages (internally) to /pages.php etc.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^absoluteglazing.co.uk [NC]
RewriteRule ^(.*)$ http://www.absoluteglazing.co.uk/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]'
Now I have switched to https, this no longer works.
Can someone please let me know how to achieve the following using htaccess so it still works over https...
- Redirect non www to www so everyone sees website with www
- Redirect non https to https so everyone gets a secure connection
- Redirect /pages to /pages.php internally to remove extension
Many thanks