1

Google Search Console lists page urls that include a query string /index.php?={some_page_name}. I have not been to figure out why. This occurs with valid pages as well as some urls that have redirects. All of the redirects precede the RewriteRule (.+) index.php?p=$1 [QSA,L] in the htaccess file.

I see this on virtually all of my Craft sites. Can anyone explain why?

Thanks!

1 Answer 1

1

When you add variables to the URL each URL will represent a different content so google will consider each one of them as a unique URL, if you do not want this behavior to happen you can replace these URL with post request ( so the variables are not listed in the URL )

hope this help.

2
  • Thanks for the reply, Salah! Having url parameters in not the issue here. Here is an example of what is happening: I have this url: /recipes/goat-cheese-fondue. It appears that way in my sitemap and Google indexes it just fine. However, in Search Console Google lists this as well: /index.php?p=recipes/goat-cheese-fondue, and tells me it did not index it because it found an alternate page with a proper canonical tag. The question is, how is Google getting that url with the query parameter during a site crawl?
    – Roi Agneta
    Commented Feb 7 at 19:50
  • If he provided the website in question , we could find out the real issue. Commented Feb 11 at 9:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.