• dccorp

    (@dccorp)


    Hi,

    I read a lot in the forum, but did not succeed to solve this, usually I get a “too many redirects”.

    I need to temporary redirect all pages of my site to the same one page (already created). I’m afraid to use “Site” option because it says “Relocate to domain” but it’s not another domain, it’s a page inside my site.

    Also, I’ve tried several regex ( for example /(.*) or ^/.* ) but all I get is “too may redirects”.

    I need everything to be redirected to “mydomain.com/maintenance” and of course to still be able to login and check normally all pages when I’m logged in.

    I cannot use a maintenance plugin because I’m using a complex theme, based on elementor, with multiple headers and footers (layouts), and I want the maintenance page to keep the aspect, with a specific header and footer, and that page is already made.

    Thank you,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    You get a too many redirects message because you are also redirecting the target URL.

    You will either need to modify your regex so it doesn’t apply to the target URL, or add a ‘do nothing’ redirect for the target URL that runs before the regex.

    https://redirection.me/support/

    Thread Starter dccorp

    (@dccorp)

    Aha, thank you, in fact I’ve tried to find a way to exclude an URL from “all”, because I was thinking at this issue, but I didn’t find an “exclude” option.

    So, the order of redirections could be used to simulate “exclude” for an expression like “redirect everything but these 2 URLs”

    Thank you,

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.