Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    Instead of using Redirects (mod_alias) use RewriteRules (mod_rewrite). Rewrite rules support the [QSA] option, which allows query strings to be passed on through.

    RewriteRule ^/wp/(.*)$ https://www.peteranne.it/ [QSA,R,L]

    Thread Starter peteranne

    (@peteranne)

    we found this worked

    RedirectMatch 301 ^/wp/(.*)$ https://www.peteranne.it/?

    thanks Peter & Anne (actually Anne found it, reminding me that I only had to read the apache manual….)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Help with 301 redirect for posts with /? in URL’ is closed to new replies.