On a website i use mod_rewrite and PHP to create clean URL's.
My .htaccess
(summary) will look like that shown below:
RewriteEngine On
#oude pagina's
RewriteRule ^nl/links/(.*)/index.php$ /nl/links/$1/ [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-zA-Z]{2}/[a-zA-Z0-9/\-_]+)/$ /index.php?navid=$1&%{QUERY_STRING} [L]
When using a browser the above seems to work well
/nl/links/eropuit/vakantie/rondreizen/
shows the right content, and /nl/links/eropuit/vakantie/rondreizen/index.php
redirects to /nl/links/eropuit/vakantie/rondreizen/
But when i take a look at the most visited pages at Google Adsense (Analytics), it tells me a index.php is found for every URL:
Now I wonder why that index.php
is found / detected and whether I should worry about it.
index.php
ever existed (as public facing URLs)? Do these URLs appear in client-side JS? Are there any inbound links to these URLs? If these URLs have never been referenced publicly (and they have always successfully redirected) then Google shouldn't "find it". Is there a physicalindex.php
file on your system in these places? If the redirect wasn't in place would that URL return the same response? – MrWhite Nov 12 at 23:52