Forum Moderators: open

Message Too Old, No Replies

.htaccess can prevent google to add my page.?

         

choochat

9:29 am on May 14, 2005 (gmt 0)

10+ Year Member



I have asked my host admin about .htaccess file. Below is the answer. Is it true?
.htaccess file is very negative for website.

----------------------------------------------------------
".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...]

treeline

2:20 am on May 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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.

choochat

5:16 pm on May 15, 2005 (gmt 0)

10+ Year Member



Hi Treeline,

Thank for your kindness. I have no idea how to check my log file. Can you explain how to do that? I have a logs directory on my server but I can't find any log file in that directory.

Choochat

treeline

8:02 pm on May 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Checking statistics or logs varies considerably from one webhost to another. Quickest thing to do is ask your webhosting company how to access your statistics and/or logs. Some let you see the raw logs, some only let you see compiled statistics.