Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- permanent 301 redirect - shtml to php without extension.


mavi - 3:12 am on Apr 29, 2012 (gmt 0)


Hi there.

I just changed my site from shtml to php and used this code to hide the php extension.

RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

But i would now like to redirect ALL shtml files to these non-extension-php-files

For example:
myfile.shtml should permanently 301 redirect to
myfile

Any suggestions would be gr8!
thanx
m.


Thread source:: http://www.webmasterworld.com/apache/4447100.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com