Jon Posted February 22, 2018 Share Posted February 22, 2018 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 More sharing options...
dragan Posted February 22, 2018 Share Posted February 22, 2018 How did you set it up? Directly in .htaccess or with apeisa's module? This thread is quite old, but maybe you'll find some hints... Link to comment Share on other sites More sharing options...
Jon Posted February 24, 2018 Author Share Posted February 24, 2018 Hello Dragan, Ive tired the redirect in both .htaccess and jumplinks but get the same result. Cheers jon Link to comment Share on other sites More sharing options...
Robin S Posted February 24, 2018 Share Posted February 24, 2018 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 Executionmod_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. 1 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