prevent htaccess 301 redirects on sub-domain
Posted
by
Ahmedk
on Pro Webmasters
See other posts from Pro Webmasters
or by Ahmedk
Published on 2012-07-10T19:27:01Z
Indexed on
2012/07/10
21:25 UTC
Read the original article
Hit count: 242
I have 301 redirects which direct /index.html to /site folder and when i created a sub-domain it also redirects the link to /site which causes 404 Not Found
ex. members.mysite.com redirects to members.mysite/site which causes 404 error can I add execption for specific forlder or something without changing the redirect.
htaccess content
AddType text/x-server-parsed-html .htm .html
RedirectMatch 301 ^/index.html(.*)$ /site$1
© Pro Webmasters or respective owner