ridirects all go to home page

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

    I apologize for the issue you’re facing with the redirects on your website. It seems that the redirects you have set up are not functioning as expected, and all redirects are redirecting to the homepage instead of the intended destination.

    To troubleshoot this issue, I recommend checking the following:

    1. Check .htaccess (or) nginx.config File: Make sure there are no conflicting redirection rules in your .htaccess or nginx.config file. You can access and edit the .htaccess file through your WordPress dashboard by navigating to WordPress Dashboard โ†’ Rank Math SEO โ†’ General Settings โ†’ Edit .htaccess. Delete any additional redirection rules and save the changes. Here’s a screenshot for reference:

    edit .htaccess

    1. Verify Redirect Settings: Double-check the redirect settings in Rank Math to ensure that the source and destination URLs are correctly entered. Make sure there are no typos or errors in the URLs.

    If the issue persists after checking these steps, I recommend replying to the ticket you opened or opening a new ticket with Rank Math Support. A human agent from the support team will be able to assist you further in resolving this issue.

    I apologize for any inconvenience caused, and thank you for bringing this to our attention.

    Best regards,
    RankBot Support

    Sources:
    Random URLs Redirecting Even When No Redirect Was Created ยป Rank Math
    Solving Redirection Issues Using Rank Math SEO Plugin ยป Rank Math

    Hi I haven’t heard from you for a couple a days how are you getting on with my ridirects
    ๐Ÿ™‚
    Fred

    Hello,

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

    Apologies for the delay as this ticket seems to have been stuck in our drafts section for some reason.

    The reason why the 1st redirect you have shared is not working is that you have created a starts with redirection portfolio-items/ to redirect to your homepage. You can click the link in the sensitive data section to view that as well.

    Regarding the second redirection, I have added the redirect properly and inserted this filter in your theme’s functions.php to remove the appending query parameter.

    Also, please note that the filter applied might get overwritten when your theme updates. You can use the alternative methods in our guide here to apply the filter to avoid that:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Hope that helps.

    Thank you.

    Tks Reinelle

    Beginner mistake ๐Ÿ™‚
    I have installed code snippet can you please insert the code there

    During the draft procedure
    There was an installation of a File Manager Plugin = i Have deleted it
    There was debugging turned on in Config.php = i Have changed to false
    There was an log file of 1.5GB = i Have deleted it

    Maybe u have to do more clean-up
    Tks Fred

    Hello,

    We added the following filter on your theme’s functions.php file in order to remove the query parameter from redirection:

    add_filter( 'rank_math/redirection/add_query_string', function($value, $matched) {
    	return false;
    }, 10, 2 );
    

    Regarding the file manager plugin, we always suggest using the following plugin before sharing the logins to monitor what changes our staff might make on your website (if any):

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

    However, we always make sure to revert back all the changes we do in troubleshooting. Also, when we last checked your website, the File Manager plugin was already installed there.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
    ย 
    Thank you.

    Hello
    I have updated Avada and the code is gone from avada functions.php
    Is have loaded plugin code snippet
    I am a newby Can i place the code there?

    ๐Ÿ™‚
    Fred

    Hello,

    Yes, you can use the Code Snippet plugin and add the filter.

    Here’s a guide you can follow to add the code:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/#num-1-2-adding-new-code-snippet

    Hope that helps.

    Hello
    I added the snippet in PHP section

    add_filter( ‘rank_math/redirection/add_query_string’, function($value, $matched) {
    return false;
    }, 10, 2 );

    But it does not seem to work
    See Ridirection
    old: ciondoli_30/?product_orderby=popularity&product_count=24
    new: https://adamas.ch/cat/ciondoli_30/

    Where do i go wrong?
    ๐Ÿ™‚
    FRED

    Hello,

    Please head over to your WordPress Dashboard > Settings > Permalinks, and hit the โ€œSave Changesโ€ button (without making any changes) to clear the permalink cache.

    Once done, please clear your website cache and see if that works for you.

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

The ticket ‘ridirects all go to home page’ is closed to new replies.