Forum Moderators: open

Message Too Old, No Replies

PHP as file extensions

are these ok for home pages?

         

akbolton

5:17 am on Jun 21, 2003 (gmt 0)

10+ Year Member



I was wondering if index.php would be noticed by Search Engines -- or picked up -- when spidering your website? I know that sometimes .asp's are ok, but... One of the webmasters that work for my company is wanting to put the .php extension on our home page...I don't want that to hurt our SEO work. Any comments and/or suggestions?
Thanks!

outrun

6:33 am on Jun 21, 2003 (gmt 0)

10+ Year Member



No it wouldnt hurt but why not just change your content types in .htaccess

AddType application/x-httpd-php htm
AddType application/x-httpd-php html

But no php as a file extension is fine.

regards,
Mark

<added>

BTW Welcome to Webmasterworld [webmasterworld.com]

</added>

enderiii

5:50 pm on Jun 23, 2003 (gmt 0)



what about no file extesion? I have main.php and link to main like so:
[domain.xx...]
where there is a number for each secion.
is not having a file extension bad?
should my sections be text instead of numbers?
(http://domain.xx/main?section=download for example)
Thanks
-ender-iii

w4an1

8:11 pm on Jun 23, 2003 (gmt 0)

10+ Year Member



No extensions is just fine with Google, but I don't think the question marks in the URL help you. When we started our biggest site in 1999, we went to a lot of work with mod_rewrite to eliminate URL variables. It worked. Google sends me 2500 visitors a day just from www.google.com.

So with our sites a URL like:

[something.com...]

would look like this:

[something.com...]

So, main.php is called with a variable id set to 1.

There are docs on how to do this with mod_rewrite. I'm not sure if this is as important these days. I'm just now diving back in to this world again.

Bill

akbolton

4:29 pm on Jun 25, 2003 (gmt 0)

10+ Year Member



Thanks a ton outrun! That clears things up for me.

Regards,
Ang