index.php

Author Message

Oleg Krogius

Sunday 30 March 2003 1:02:20 pm

I was curious, is there any way to get your urls to look like site.com/user/ (rather then site.com/index.php/user/) without access to httpd.conf. Perhaps there is some way with .htaccess or the like?

Another idea I had, if the above method can't be achieved without the httpd.conf, is to rename 'index.php' to just 'index'. And then use a forcetype in .htaccess to make Apache parse it as a php file. While this way is still not so pretty, it shoudn't arouse promlems with search engines not indexing pages (if they think the url is malformed), which may happen with just 'site.com/index.php/user/' style URIs. It would be great to hear some opinions on this.

Any help would be greatly appreciated.

Sincerely,
Oleg

Karsten Jennissen

Monday 31 March 2003 3:54:30 am

Hi Oleg,

information on virtual host setup (without the index.php) can be found here: http://ez.no/manual/install/install_manually#Linux_FreeBSD_Macos_VirtualHost

I am not sure whether you can do the same with .htaccess.

The method with forcetype should be possible, however I do not understand what kind of problems the index.php should cause for search engines. I think this is only a matter of how pretty the URL looks.

Regards,
Karsten