301 Redirects Not Working

#1104690
  • I have added 301 redirects and they are not working. I have flushed the cache on the server and clicked the “flush cache” within the GoDaddy Tools section. I enabled debugging and it does not present anything on the redirect as it says. I have selected the options to recreate missing database tables, remove transients, and delete internal links data.

    The main issue I need to solve is redirecting orphan attachment pages to the corresponding media. This works fine on my staging website (no Rank Math options needed i.e. redirect to home page), but does not work on the production website, despite syncing the two websites utilizing GoDaddy hosting’s sync option. I noticed Rank Math’s database has not been directly transferred on this sync.

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

    I apologize for the issue you are facing with the 301 redirects not working on your production website. It sounds like you’ve already taken several steps to troubleshoot the problem, which is great. Here are a few additional suggestions that might help:

    1. Check for Caching Issues: Since you’ve flushed the server cache and used GoDaddy’s tools, ensure that there are no other caching layers (like a CDN) that might be affecting the redirects. Clearing your browser cache can also help.

    2. Database Tables: You mentioned that you recreated missing database tables. If the issue persists, double-check that all necessary Rank Math tables are present in your production database. You can do this by navigating to Rank Math SEO → Status & Tools → Database Tools in your WordPress dashboard.

    3. Redirect Attachments: To redirect orphan attachment pages to their corresponding media, ensure that you have enabled the Redirect Attachments option in Rank Math SEO → General Settings → Links. If this option is not available, make sure you are using the Advanced mode of Rank Math. Here’s a visual guide:
      Redirect Attachments

    4. Debugging: Since debugging did not show any issues, consider checking your server error logs for any related errors that might not be captured by Rank Math.

    5. Sync Issues: If the database was not fully transferred during the sync, it could lead to discrepancies in how Rank Math operates on your production site compared to your staging site. You may want to manually check and compare the settings between both sites to ensure they match.

    If these steps do not resolve the issue, please reply to this ticket with your production site URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we’re here to help you get it sorted out!

    Sources:
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    Should You Redirect Attachment Page URLs? » Rank Math

    This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.

    The Redirect Attachments is no longer working as well.

    Hello,

    Please check if the redirection tables are created by heading over to WordPress Dashboard > Rank Math > Status & Tools > System Status > Rank Math:

    Redirection tables

    If those are returning 0, click this button in Rank Math > Status & Tools > Database Tools:
    https://rankmath.com/kb/rank-math-status-and-tools/#recreate-missing-database-tools

    If the recreate database tables option is not working, you can forward this SQL code to your web host and run the query in your database to manually create the redirection tables on your site:
    https://pastebin.com/X8AK49MF

    You can also install the PHPMyadmin plugin to manually create the redirection tables using the code.

    Once the tables are created, try adding the redirects again and check if it’s already working.

    Looking forward to helping you.

    I have these tables already. I tried deleting all records in the redirection cache table via PHPMyadmin but the issue still persists.

    Hello,

    We might need to take a closer look at your website to investigate this further. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the plugin below to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    I put in a temporary login to start out. If the issue persists, we can move to SFTP. Thank you!

    Hello,

    The redirects you have created are parameterized URLs.

    Please note that the URLs with parameters can be redirected using Rank Math PRO only:
    https://rankmath.com/kb/setting-up-redirections/#parameterized-url

    In the free version, you can redirect them via the .htaccess file.

    Looking forward to helping you.

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

You must be logged in to reply to this ticket.