Reputation: 189
I got notifications from Google webmaster tool that I have duplicated page titles.
It was properly to browse mysite.com/file.php but I do not know why mysite.com/file.php/
is showing some of content by file.php.
Please advise how to remove/disable content showing when browse mysite.com/file.php/
Upvotes: 0
Views: 77
Reputation: 7866
When you hit /file.php
, or /file.php/
what changes is pathname that the browser "sees".
In first case, it is /
, in second case it's /file.php
.
Hence, when you use relative path (to images, stylesheets, etc), in second case the browser will send requests to wrong URIs.
To avoid that, use <base url="http://example.com/path/to/site/root/">
in your HTML
Upvotes: 1
Reputation: 8020
1st: You might have a filename file.php
and directory file.php
. Check those out.
2nd: You might have .htaccess
rewrite rule, that messes stuff up, if you do check out the syntax on that.
Upvotes: 1