Redirect Subdomain to main domain

#454300
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    If you want to redirect your sub-domain posts to main domain with the post URL, you may try adding the following redirection rule to your .htaccess file:

    RewriteCond %{HTTP_HOST} ^real-estate\.studio910pb\.com$ [NC]
    RewriteRule ^ https://studio910pb.com%{REQUEST_URI} [L,R=301]

    After you apply the redirection rule above, the redirection should be work like below:

    From:
    https://real-estate.studio910pb.com/collection/109-baldwin-blvd-greenacres-fl-33463/

    To:
    https://studio910pb.com/collection/109-baldwin-blvd-greenacres-fl-33463/

    Here’s how you can edit .htaccess file using Rank Math:
    https://rankmath.com/kb/edit-htaccess/

    Please do take a backup before editing your .htaccess file.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Redirect Subdomain to main domain’ is closed to new replies.