Jump to content

Troubleshooting a PW .htaccess rule that's not doing anything?


MarcC
 Share

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...