MarcC Posted May 8, 2019 Share Posted May 8, 2019 Hi everybody, I am updating a PW site that has been migrated away from another vendor. The old URLs had a prefix-segment like /page/ in front of blog posts. Here is the rule I created in PW's .htaccess: RewriteRule ^page/blog/(.*)$ blog/$1 [R=301,QSA] Within the .htaccess, this is placed before another, working, rule, and below the directives to enable mod_rewrite. Can anyone see a reason why this would not be doing anything? If I go to example.com/page/blog/blah I still get a 404 page instead of being redirected to example.com/blog/blah. Thanks! Link to comment Share on other sites More sharing options...
ngrmm Posted May 8, 2019 Share Posted May 8, 2019 try to use RewriteBase /page in your htaccess no need for a RewriteRule Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now