Redirections

#179183
  • Resolved H
    Rank Math free

    Not recognizing source URL.

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

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for the delay and for any inconvenience this issue may have caused you.

    My recommendation would be to use .htaccess for this kind of redirection since they are better running directly in your .htacces file.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
    RewriteRule ^(.*)$ https://newdomain.com/$1 [L,R=301]

    Furthermore, you can get in touch with your web host for this kind of redirect and further assistance.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    H
    Rank Math free

    Hi Reinelle,

    Could you elaborate on why it’s necessary to modify .htaccess instead of simply adding this redirect to Rank Math?

    It seems this eliminates the need to use Rank Math, if the only way to do it is by modifying .htaccess.

    Hello,

    Thank you for keeping in touch with us.

    The redirections will only detect source URLs from the main domain of your website. If you want to redirect from the www version of a link, then I can suggest that you create the redirection on your .htaccess file by heading over to Rank Math > General Settings > Edit .htaccess file.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    H
    Rank Math free

    Thanks for the details. The .htaccess file looks a little different than then one in the screenshot Jeremy provided.

    Could you please confirm that this was done correctly? Here is the before/after.

    Before: https://cln.sh/PnkbplZYjdu0RO4Erp72
    After: https://cln.sh/jgX7UzYY5badcZldUbNp

    Thanks again.

    Hello,

    That htaccess configuration would not likely work as the conditions might not be met. Can you please try this instead?

    RewriteEngine On
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} hiramnunez\.com$ [NC]
    RewriteRule ^(.*)$ https://hiram.io/$1 [R=301,L]

    Let me know how it goes, we are looking forward to helping you with this one.

    H
    Rank Math free

    Here it is as it currently stands: https://cln.sh/hUzIptXxGseUJFmMGUUV

    How long does it usually take for the changes to propagate? Checked just now and nothing yet.

    Hello,

    Thank you for the update, and sorry for the delay.

    The redirects should not take that long to reflect on your site unless you have some caching that you need to clear.

    However, could you please confirm if you are adding the .htaccess redirect in your .com site? It seems that you’re using the .io website as that site is already using Rank Math.

    Please note that the redirection should be created from the source URL, not the destination URL.

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    H
    Rank Math free

    No, unfortunately I don’t have access to the old domain’s .htaccess file (the .com).

    The site is hosted on Webflow and they don’t provide access to any of that. And similarly, redirects only work for the same domain.

    Additionally, what should I change the .htaccess file on the .io domain back to?

    Please advise. Thanks.

    Hello,

    Thank you for the follow-up.

    I’m sorry to say that the redirection you wanted is not achievable using your .io website. It should be created in your .com site under Webflow.

    Additionally, what should I change the .htaccess file on the .io domain back to?

    You can remove the redirection lines added to your .htaccess from the first line up until the #Begin WordPress line (based on your screenshot).

    I hope that helps.

    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 9 replies - 1 through 9 (of 9 total)

The ticket ‘Redirections’ is closed to new replies.