Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Htaccess Redirecting Questions


scaggster - 12:24 pm on Jan 28, 2013 (gmt 0)


ive had to do it a funny way but this seems to work for me

heres the htaccess:

RewriteEngine on
RewriteCond %{HTTP_HOST} subdomain.example\.co.uk [NC]
RewriteCond %{REQUESST_URI} !^index\.php$
RewriteRule ^(.*)\.php$ http://www.example.com/$1.html [R=301,L]
RewriteRule ^(.*)\.html$ http://www.example.com/$1.html [R=301,L]

This means i can redirect all the content but leave the Index page intact for me to redirect via other means to the exact place i wanted. Thanks for yours and googles help.


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