Viewing 2 replies - 1 through 2 (of 2 total)
  • ryo113k,
    You have to be careful not to redirect to a page that redirects back to the page itself (not sure if that is what is happening here, but something to look out for).

    For example, if you have a page /contact/ and you redirect it to /contact-form/, but you have a redirect on the page itself (as a regular redirect) from /contact-form/ to /contact/, you will have an infinite loop and the browser will stop it with an error like you have.

    Additionally, WordPress calls a function named “redirect_canonical” that tries to find a close matching URL if the one requested is not found. This is helpful in some cases, but in cases where you have a URL that is close to another that you are trying to redirect, sometimes WordPress takes over first and tries to redirect it to the other – then if you have a redirect set up on that, it creates an infinite loop.

    You can deal with this in two ways:

    1. Remove the redirect_canonical functionality.
    2. Let WordPress deal with the redirects that it can fix, then redirect the others.

    To Remove the functionality, you need to add a filter to do it.
    Add the following to your theme’s functions.php file (after the opening <?php tag):
    add_filter('redirect_canonical','__return_false');

    To let WordPress redirect for you, first check your URL with a tool to see if it redirecting without you adding a redirect. Use a tool like https://urivalet.com/ to test the headers. If the URL already redirects to the correct URL, then leave it. If not, then add the redirect to where you want it to go.

    If you have redirects happening that WordPress is redirecting that do not go to the correct place, then you will have to disable the ‘redirect_canonical’ functionality to add your own.

    On your question about the NW and NF columns – those are leftover items from an earlier version (they currently do not work). They stand for ‘Open in a New Window (NW)’ and ‘No Follow or Add rel=”nofollow” (NF)’. We left them in because we may add functionality back at some point when we work out some issues with their functionality.

    Hope this helps answer some questions.
    Regards,
    Don

    I’ve got a problem with the plugin.
    my previous url was:
    http://www.firsttraffic.com.au/#!traffic-management/ccfn
    which I want to redirect to url:
    http://www.firsttraffic.com.au/our-services/traffic-management/
    plugins are not allowing me to redirect
    what should i do?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Quick Redirect doesn't work well’ is closed to new replies.