12-10-2016, 02:45 AM
Thanks for the reply. I got it working with this code below. Someone else might find it useful.
RewriteEngine on
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME} !-d
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME} !-d
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
Just that the pages loads either .php is specified or not and still maintain the entered url. What I was hoping for was to remove .php even if specified.
RewriteEngine on
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME} !-d
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME} !-d
RewriteCond {3bc1fe685386cc4c3ab89a3f76566d8931e181ad17f08aed9ad73b30bf28114d}{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
Just that the pages loads either .php is specified or not and still maintain the entered url. What I was hoping for was to remove .php even if specified.