- - Search Engines
- -- Sitemaps, Meta Data, and robots.txt
- ---- Help: htaccess rewrite rule
g1smd - 7:41 pm on Apr 2, 2011 (gmt 0)
Swap (.*) for ([^/]+/)+ to quickly recurse folder levels. Escape literal periods in patterns using \. instead of . here.
The [R] produces a 302 redirect. Change to [R=301,L] and add the protocol and domain name to the rule target.
Thread source: http://www.webmasterworld.com/robots_txt/4291254.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com