Forum Moderators: open
----------------------------------------------------------
".htaccess file are used to apply advanced options in a folder, such as when a page will redirect, whether a visitor must provide a user name
and password to view files within it, etc. If an .htaccess file exists in your root Web folder, it could prevent a search engine from adding
your site to its search result index. But that is not the case with your site since you do not have an .htaccess file in this location. The presence of an .htaccess file can only have a negative impact as
described above - it would not enhance the ability of a search engine to index your site or improve the ranking or placement of your site on a particular search engine."
----------------------------------------------------------
I read many post on this site. There are many positive about .htaccess file. I thought I should use it on my server too.
I have a problem with my website. Lot of my web pages are php file. Google doesn't like php. There are only few of my webpage getting list in google.
If google prefer html more than php I will put this in my .htaccess file.
-----------------------------------------------
options -indexes
DirectoryIndex /index.html
<Files *.html>
ForceType application/x-httpd-php
</Files>
-----------------------------------------------
As a result, I can use php code in any html file. I will change all my pages to be html extension. Actually it's php file but come up with html extension.
But after I recieve the above message about .htaccess file. I'm not sure. Could I upload .htaccess file to my server?
Can anybody reccomend me? What should I do? I should leave my page to be php or use .htaccess file to change all of my pages to html.
Choochat.
[123-rich.com...]
If an .htaccess file exists in your root Web folder, it could prevent a search engine from adding your site to its search result index.
Sure, it could be used to do that, any powerful tool can be used several ways. But it won't normally prevent indexing unless you're using it to restrict access in some way.
Google can usually index cgi and php pages now, so you might look further for why you're not listed. Check your log files to see if googlebot requested the pages in question. Remember, there's a difference between Googlebot not finding a page, and finding it but ranking it really low.