Forum Moderators: phranque

Message Too Old, No Replies

Removing index.php from the URL

How do I remove the index.php part from the URL?

         

Lupus1647

9:54 pm on Mar 18, 2005 (gmt 0)



Using .htaccess, how would I remove index.php from the url when someone puts domain.com/index.php so that in the end it would apear as domain.com/ in the address bar?

Thanks!

sitz

10:03 pm on Mar 18, 2005 (gmt 0)

10+ Year Member



A better question might be "are you sure this is what you really want to do?" The only way to do this is with a 30[12] redirect, which is causing the browser to re-request your page for the same content it would normally get. There /are/ valid reasons for doing this; sure be sure yours is one of them. =)

If you're REALLY sure this is what you want to do, read [httpd.apache.org ].