If i typed mywebsite.com/index.php it showed the same page as mywebsite.com, i didn't redirect index.php to home page. Is it wrong in seo point of view. Whether google bot consider these two pages as different pages?
The page that shows on your domain root is your homepage/indexpage. It can be index.php, index.html or home.php, anything. Nothing wrong in SEO perspective.
Hai, There is nothing wrong in this. You can place files with names such as index or default in any of your directories and when the directory is referred you will be shown this page. It is a standard in the web and not an error. For example consider a website with the following structure: yousite is the root folder and inner is the internal folder. yousite/ --> index.html --> x.html --> y.html -->inner/ -->index.html -->a.html -->b.html If your refer to yoursite.com from a web browser then, it will load yousite/index.html and if you enter the URL yousite.com/inner, then it will load yousite.com/inner/index.html Hope you are clear about this concept now. Thanks
Google will see two different pages with the same content so you need to setup a 301 redirect for non-www to www and /index.php to www If you want the .htaccess code for all that and more you can check out the link in my sig
No you should setup a 301 redirect for your index to the root as I said above! With the correct 301 in place you have no need to place a canonical tag for the home page. This is the code you should place in your .htaccess file: Options +FollowSymLinks RewriteEngine on # index.php to / RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/ RewriteRule ^(.*)index\.php$ /$1 [R=301,L] Code (markup):
I'll try to answer your question. Based on my opinion, BOTS think each URL as unique. Whether it is "/me" or "/mes", both of them are different. The same thing applies to "/" and "/myhomepage". Both of them are unique. As long as the URL is accessible, has no redirection (especially 301) and no cannonical, BOTS think it different. However, BOTS from SE are smart. They will think "/index.php" and "/index.html" the same as "/". I remember Google recommend webmaster to use only one accessible URL and redirect the other. If two links has to be active, make sure to utilize "rel=canonical" which mean only one link will be added to index. I wish the explanation above answer your questions. Arick.
This is duplication of pages. website.com/index.php and website.com are two different pages according to search engines. The ranking benefits are split across the two pages. So kindly do a 301 permanent redirection from non preferred version to preferred version of the page.
I found some nice answers as above to the question. However, to extend the question, I would like to ask what if the site link looks like the following? abcd.com/index.php/weightlost/how-to-lose-weight fast. Or, abcd.com/blog/index.php/how-to-get-a-girl-of-your-dream-next-year?
It's because Google can't detect whether it's different content or not. Depending on your server, the default file might by default.php or default.aspx or index.php or some variation of that. Plus with dynamic urls (index.php?p=33), Google isn't sure whether the page it's being fed is your homepage or a dynamic file. Fortunately, they do give you the ability in google webmaster controls to tell Google to ignore certain URLS (or define what the variables at the end of the url mean).
However, you can change it from your .htaccess file..if you want to keep yourdomain.com or yourdomain.com/index.html