how to remove the index.html and index.php files from urls
abhishekmishra
4:02 am on Feb 24, 2011 (gmt 0)
How to remove the index.html and index.php files from Urls. does it's effect on SERP?
experienced
12:18 pm on Feb 24, 2011 (gmt 0)
yes it may effect your serp if spider can find both the versions. if your site is static, and this is the root index, you can simply use "/" on all the places where you have written index.html this way there would not be any link to your index.html
if yur site is dynamic using php, you can try doing through htaccess file simply 301 redirect index.html to your main domain.com
phranque
12:11 am on Feb 25, 2011 (gmt 0)
these are all the steps you should take: - configure your server to specify the default directory index document(s), such as [index.html,index.php] - refer to all directories using the trailing-slash url for all internal links and navigation. - as experienced mentioned, your server should respond to any requests for default directory index documents with a 301 status code and a Location: header referring to the trailing-slash url. this is most easily accomplished with mod_rewrite directives in the .htaccess file.
g1smd
4:03 am on Feb 25, 2011 (gmt 0)
The first part of this thread from only yesterday contains the code you need: [webmasterworld.com...]
abhishekmishra
8:32 am on Feb 25, 2011 (gmt 0)
Hi Experienced, Thanks for your very informative reply...! :)