I am restructuring a website that has good indexing in google, and need to make sure I have good 301 redirects in place.
The current site structure is like this:
http://www.example.com/store/foo/bar
The new site structure is like this:
http://www.example.com/foo/bar
Basically, the /store directory doesn't exist anymore.
This is the rule I tried writing in my .htaccess file and it isn't working. Admittedly, I am terrible at regex. Any guidance would be helpful.
rewriteCond %{REQUEST_URI} ^store$ [NC]
rewriteRule ^store/(.*)$ http://www.example.com/$1 [R=301,L]
[edited by: jdMorgan at 6:32 am (utc) on Mar 10, 2010]
[edit reason] example.com [/edit]