Root URL Redirection

  • Can I set up redirection on the root URL?
    I want to send people to while I create the new site.

    But I’m unsure what details to put in the Source URL box, I’ve tried “/” and I’ve tried the slug “home”, neither let me save a redirections/rule.

    Any tips or guidance would be appreciated.
    Or alternative methods, for use while I still log in and build out the new site pages.


Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for getting in touch.

    This may not be possible via Rank math redirections, but can e done by adding the following to your htaccess file:

    ## 301 Redirects
    # 301 Redirect 1
    RewriteCond %{HTTP_HOST}  ^www\.newsite\.com$ [NC]
    RewriteCond %{QUERY_STRING}  ^$
    RewriteRule ^$ [R=301,NE,NC,L]

    Hope this helps you.

    Can you confirm that this would still allow me to login to WP?

    I want to still be able to build the rest of the site pages, before removing this code snippet again to GO LIVE on the URL.

    – Fiona


    This will redirect the homepage, all other pages should be accessible but the home page cannot be accessed from the front end. Let us know if you face any issues with the same.

    Looking forward to helping you.

    Brilliant. Thanks for clarifying.
    – Fiona


    We are glad to be of help.

    If you need further help or with anything else, please open a new support ticket here so we can help.

    We are always here for assistance.

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

The ticket ‘Root URL Redirection’ is closed to new replies.