Why do my analytics report that index.php appears in URLs despite friendly URL rewrite rules?

Why do my analytics report that index.php appears in URLs despite friendly URL rewrite rules? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the Why do my analytics report that index.php appears in URLs despite friendly URL rewrite rules? error on your web browser. Problem :


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:



enter image description here



Now I wonder why that index.php is found / detected and whether I should worry about it.


Solution :

Google Analytics provides a way to add a filename to any page path ending with a slash, in order to standardize data for pages that might be accessible with or without the filename. Look in Admin > View Settings for the Default Page field, right underneath time zone. An index.php in that field is your reason!


We hope that this article has helped you resolve the seo, google-analytics, redirects error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=