My htaccess RewriteRule is Redirecting instead!
-
Hi,
We installed WP into /blogs
We have an old store in /store
We want links to /store to be rewritten (not redirected) to /blogs/storeWe require (for SEO) that the links don’t change, no redirects!
/blogs/store is page id =123
I try this in the root .htaccess file :
RewriteRule ^store/(.*) /blogs/?page_id=123
But it behaves as a redirect instead of a rewrite. I think this is because WP has permalinks on, so it wants to turn /blogs/?page_id=123 into /blogs/store/ but when it does that it changes the url. And we can’t use :
RewriteRule ^store/(.*) /blogs/store
Because that would be one .htaccess file in root calling on another in /blogs/ and that’s no gnus!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘My htaccess RewriteRule is Redirecting instead!’ is closed to new replies.