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


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


I've tried this:

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

# then redirect shtml to no-extension
RewriteRule ^(.+)\.shtml$ $1 [L,NC,R=301]


both work independently, but the codes don't work together...
I guess I'm creating endless redirects?
I've also tried redirecting to no-extension first.


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