March 10th, 2014, 09:54 AM
How does Google treat redirects?
For anything deeper than the first level of my site, I want to use 'home.php' as the main page rather than 'index.php', so I plan to use the following redirect method for all 'index' pages:
Will Google not like me for that?
<?php header('Location: http://mydomain/foo/home.php'); ?>
March 10th, 2014, 08:21 PM
Google probably won't care much, but you'd be better off just configuring the web server to serve home.php as the index page - saves you the trouble of having to create a bunch of redirect files.
March 11th, 2014, 10:20 PM
Cool. I'll do exactly that.
December 31st, 2014, 05:04 AM
Its better you use canonical tags
Because your domain will also open with example.com and example.com/deafult.php
so it suggested to use canonical tags also.
Sample of canonical tags:
Your Business Need More Than Just An Email Id, Protect Your Email Data With Smart Mail Server
January 2nd, 2015, 01:45 AM
January 2nd, 2015, 01:47 AM
Use sholud directly chang in DNS Server
March 11th, 2015, 04:15 AM
I think it will be the best way to notify Google about your desired page to be indexed. By using rel canonical tag Google will get notified to index /home.php only instead of /index.php
Originally Posted by PeterSullivan