• We were experiencing an issue with the latest version of the plugin (v 1.2.21) in which, whenever we added a redirect in WordPress using the standard add_rewrite_rule, the Custom Permalink plugin overwrote it and generated 404’s.

    We tested turning off and on plugins until we identified that the Custom Permalink plugin was the issue. We also rolled back to version 1.2.10 and this seems to have resolved the issue.

    It seems that slightly similar issues are already being discussed in the forum, but none that address redirects specifically.

    Please advise. We’d love to keep using the plugin but this caused a pretty major disruption on our end.

    Looking forward to a quick response!

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi!
    Seems like I have the same issue here.
    Also rollbacked to 1.2.10 and it fixed the problem.

    Hard to provide any more detailed info but I also use add_rewrite_rule

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @luminadevops @jenswesterlund

    Sorry to have disruption in using this plugin.

    Can you both specify a simple example of your add_rewrite_rule?

    Thanks,
    Sami

    Thread Starter luminadevops

    (@luminadevops)

    Hi @sasiddiquim ,

    Here is the code that we were using that stopped functioning due to the plugin:

    function my_init_rewrite_rule() {
        add_rewrite_rule( 'forum/companies/?([^/]*)/?(.*)', 'index.php?directory=1&directory_filter=$matches[1]&page=$matches[2]', 'top' );
    }
    
    add_action( 'init', 'ax_init_rewrite_rule');

    Looking forward to hearing back!

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @luminadevops

    I have tried with simple add_rewrite_rule which looks like this:

    function ax_init_rewrite_rule() {
      add_rewrite_rule('^leaf/([0-9]+)/?', 'index.php?page_id=$matches[1]', 'top');
    }
    add_action( 'init', 'ax_init_rewrite_rule');

    It works exactly fine as expected. My permalink setting is selected as “Post name”.

    Please check the above rewrite and also check the Permalink Settings of your site.

    Let me know, what results you got.

    Thanks,
    Sami

    Thread Starter luminadevops

    (@luminadevops)

    Hi @sasiddiqui,

    Our permalink setting is set to /%category%/%postname%/ and this structure is a must for our site to work properly so we do not have any flexibility there.

    Is this something that can be accomplished with the plugin or does it only work for /%postname%/?

    Looking forward to you response!

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @luminadevops

    Thanks for your confirmation. It works with this structure and doesn’t have any issue.

    I am not getting this issue with the rewrite rule i provided above. If you don’t mind so would you like to help me to drill down this issue by arranging an meeting with you and seeing this issue by myself?

    Thanks,
    Sami

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Latest Plugin Version Overwrites Redirects’ is closed to new replies.