• Resolved T4G

    (@tips4gamers)


    Hi,

    A few years ago when AMP first started u we got on board. Then, we wanted to hop off, so I followed WP Beginner’s instructions on downloading this plugin to remove AMP from Google. I set up a regex redirect as follows per instructions:

    First, add the following code in the source URL field:
    
    1
    /(.*)\/amp
    In the target URL field, you need to add your website’s URL in the following format:
    
    1
    https://example.com/$1

    I then checked the 404s and they were gone for AMP. Then, I deleted this plugin, which I now regret.

    We now have AMP installed and activated but there are “unavailable due to slug conflict” messages for certain strings so we are using the Query Parameter instead.

    However, we can no longer activate pages as a template because every group URL (from BuddyPress) redirects forever and the browser never returns error too many redirects. It’s just a constant loop. Every other page other than /groups/* has no issues.

    I deactivated all plugins, cleared my cache and cookies, and even deleted the .htaccess file but the issue still resides.

    Is there a way to fix this redirect error?

    The page I need help with: [log in to see the link]

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

    (@johnny5)

    Thread Starter T4G

    (@tips4gamers)

    Thank you for that information, John! You are much appreciated.

    Why in the world would WordPress even touch that URL and where is that redirect being stored? Do you have any resources as to how I could fix this? I would greatly appreciate it!

    I am assuming this is also causing the /amp/ and ?amp “unavailable due to slug conflict” message via the AMP Settings? It also states, “There is a post, term, user, or some other entity that is already using the “amp” URL slug.”

    • This reply was modified 3 years, 8 months ago by T4G.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Regex Redirect Issue with AMP’ is closed to new replies.