Hi all,
When the user just clicks the links within the site, then the address bar will hide the .php. or html extension. As expected. So this works.
Also, when the user manually enters
www.mydomain.com, then it resolves correctly to
www.mydomain.com/index (without the php)
But when the user enters
www.mydomain.com/index.PHP - then the php will stay in the address bar.
Is this normal ?
Here is my .htaccess:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html
PS: Sorry to pop this unrelated question in here...
From the code above; how do I 'combine' the Condition and Rule in one line for both .php AND .html ?
Thank you kindly.
Jamie.