Forum Moderators: coopster

Message Too Old, No Replies

PHP Includes and .htaccess

         

webstudio

2:02 am on Jul 22, 2004 (gmt 0)

10+ Year Member



Hi all,

i use PHP includes on my site, and i have to say i love using them.

i am concerned with the fact that SE's may not be indexing the content of my include's because these are parsed at the server.

does the use of a .htaccess file help me here?

i understand that using something like this helps when using non-PHP pages:

AddType text/html .shtml
AddHandler server-parsed .shtml
Options Indexes FollowSymLinks Includes

Is there a .htaccess file for PHP includes? is it a matter of changing the file extensions shown above to .php?

I think im on the right track but dont want to do it unless its actaully going to increase the likelyhood of getting all my content indexed by SE's when being crawled.

hope this is clear

ergophobe

3:53 pm on Jul 22, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




i am concerned with the fact that SE's may not be indexing the content of my include's because these are parsed at the server.

You have this backwards. SE's ARE seeing your content BECAUSEe these are parsed at the server.

SE's see HTML, they do not see PHP. When they ask for a page, PHP generates the HTML using a 1000 includes if necessary (but hopefully not!), but to the SE it's all one HTML page and it gets indexed as such.

Tom