Jump to content

Redirect issue


Jon
 Share

Recommended Posts

Hello All,

Ive setup a redirect however on the following is added to the end of the redirect ?it=nameofoldpage any ideas how to stop this? This only happens when I view the redirect without a / at the end

Cheers

Jon

Link to comment
Share on other sites

The issue is that PW's .htaccess file contains mod_rewrite rules that get executed before any mod_alias redirects. This article explains:

Quote

Order of Execution
mod_rewrite rules get executed before mod_alias rules. This is important to note because this is the case regardless of the order in which you place the directives in your .htaccess file. It may not seem like a big deal at first, but it means you may end up performing simple redirects using mod_rewrite simply because you want it to happen before a mod_rewrite directive which happens later.

So that advice applies here - it's better to do redirects using mod_rewrite so that you can use the [L] flag to prevent other rewrite rules affecting the redirect. 

 

  • Like 1
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...