• Resolved zecke

    (@zecke)


    Hi

    My google webmaster tool showed me that my wordpress website has some errors in indexing…

    My main site is indexed in google as follows:

    example.com
    then:
    example.com/?id=113742
    example.com/?id=154242
    example.com/index.php?id=10299
    example.com/index.php?id=21661

    etc.

    Do You have any idea why this is happening ? I want only example.com to be indexed. Or maybe You know how to 301 all the ?id and index.php to main page ?

    Thanks for any ideas
    Rafal

Viewing 1 replies (of 1 total)
  • Thread Starter zecke

    (@zecke)

    Ok. I found solution. Here it is:

    
    RewriteCond %{QUERY_STRING} .
    RewriteRule ^$ /? [R=301,L]
    

    That will redirect all urls with question marks to root

Viewing 1 replies (of 1 total)
  • The topic ‘Unwanted /index.php?id=XXXXX in wordpress url path’ is closed to new replies.