Answers.Body: <p>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 )</p>
  <p>hope this help.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-07T19:50:08.233Z
Answers.Text: 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?
Answers.UserDisplayName: Roi Agneta
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-11T09:04:36.033Z
Answers.Text: If he provided the website in question , we could find out the real issue.
Answers.UserDisplayName: Salah Ahmed Ali
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2024-02-06T08:39:23.817Z
Answers.LastActivityDate: 2024-02-07T03:54:17.907Z
Answers.LastEditDate: 2024-02-07T03:54:17.907Z
Answers.UserDisplayName: Salah Ahmed Ali
Body: <p>Google Search Console lists page urls that include a query string /<code>index.php?={some_page_name}</code>. 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 <code>RewriteRule (.+) index.php?p=$1 [QSA,L]</code> in the htaccess file.</p>
  <p>I see this on virtually all of my Craft sites. Can anyone explain why?</p>
  <p>Thanks!</p>
  
Tags: <querystring>
Title: Search Console showing pages with index.php? in the url
ThreadText: # Search Console showing pages with index.php? in the url
  
  (Asked by: username_0 on 2024-01-31)
  
  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!
  
  **Tags:** querystring
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-02-06. Score: 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.
  
  > **Comments:**
  > **username_0**: Thanks for the reply, username_1! 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?  
  > **username_1**: If he provided the website in question , we could find out the real issue.  
  
  ---
  
  