• Resolved itism64

    (@itism64)


    Hi John,

    I have something strange, after some time i am getting redirections to the wp-admin page and i can′t even login anymore as it redirect to the main page. After i remove the redirect plugin, I am able to enter again in the admin. Activate the plugin and have in few hours almost 3700 redirect to the admin page. Also mr. google warn me about that many url are not able to index because i block it with robots.txt (as i have for the wp-admin)

    I think i found the “error” but not sure if this just my knowledge of regex or something goes wrong with the plugin. (what I doubt)

    I have this links redirected :

    https://www.example.com/test_t_p444.html to https://www.example.com/tag/test

    source: ^(.*)_t_*.*$
    target: /tag/^$1

    Could this be the “problem” ? as maybe there i a link that have _t or t_

    Cheers

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    Given the information I couldn’t say what the problem is. However, your regular expression does not look correct

    I don’t know exactly what you are trying to do but this could fix it:
    ^(.*)_t_*.*$ => ^/(.*)_t_.*?\..*$
    /tag/^$1 => /tag/$1

    You can use https://regex101.com/ to test regular expressions.

    Thread Starter itism64

    (@itism64)

    Hi John,

    Thanks for your reply.

    https://regex101.com/r/w53tFe/1 does almost work, but i get /tag/https://www.example.com/test instead of https://example.com/tag/test.

    Have “old” CMS site with 25K post that use _t_ for tags and _c_ for category and as bonus also pages the p for each tag and category. And the pages itself also include a _p_ and for the canonical they used a wordstemmer so to find all matches in there is big fun

    Thought that the redirects worked but there are many exceptions so big mess, and lost already 50% of traffic in few days.

    Cheers

    Plugin Author John Godley

    (@johnny5)

    > https://regex101.com/r/w53tFe/1 does almost work, but i get /tag/https://www.example.com/test instead

    Your URL in WordPress will not include the domain.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Starts to redirect to the wp-admin page’ is closed to new replies.