Support » Everything else WordPress » WordPress 404 Errors in Parameters

  • As the title suggets, I have approximately 1500 404 errors showing up on Google Webmasters for links like the following:

    example.com/?tag=name
    example.com/?cat=name
    example.com??page=#

    I am unable to figure out how to correctly fix these errors. What I would like to do is redirect ?tag= to example.com/ (same for ?cat= and ?page=”

    So If you accessed http://example.com/?tag=bob, you’d be taken to example.com/

    How could I possibly do that? I use Apache 2.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    .htaccess redirects.

    Possibly this (untested!)

    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{QUERY_STRING} tag=(.*)
    RewriteRule ^(.*) http://example.com/

    Read http://corz.org/serv/tricks/htaccess2.php for more details 🙂

    Thread Starter btks

    (@btks)

    I tried that before, actually, and i get a Redirect Loop.

    The webpage at http://example.com/?tag=d has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Brain fart… ?cat and ?tag are built into WordPress in the first place and shouldn’t be 404ing unless people are going to tags and cats (and pages) that don’t exist. Trying to .htaccess redirect them WOULD make a weird loop.

    Where are the links coming from?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress 404 Errors in Parameters’ is closed to new replies.