Page 1 of 1

Issue with url

Posted: Thu Apr 20, 2006 7:39 am
by chigs123
Hello Guys,

I am using linux and apache server
I want to access my index.php page without .php extension
for e.g

http://www.example.com/index.php

This is the normal way to access the index.php

Now I want to access the same index.php page by writing following url

http://www.example.com/index

Do anybody have any hint regarding this issue

Posted: Thu Apr 20, 2006 7:42 am
by Chris Corbyn

Re: Issue with url

Posted: Thu Apr 20, 2006 7:49 am
by chigs123
Thnx to reply

I tried it but didnt get success. Can you explain me by giving an example, if its possible

Thank you

Re: Issue with url

Posted: Thu Apr 20, 2006 9:31 am
by Chris Corbyn
chigs123 wrote:Thnx to reply

I tried it but didnt get success. Can you explain me by giving an example, if its possible

Thank you
Make sure you have mod_rewrite support compiled into apache. Then in httpd.conf or .htaccess:

Code: Select all

RewriteEngine On

RewriteRule ^(.+)$  $1.php

Re: Issue with url

Posted: Fri Apr 21, 2006 7:26 am
by chigs123
Thnx buddy

Still not able to get the result

I checked mod_rewrite is instatlled on server

Thank you for you reply, and tell me if there is another way or anything else that I might doing wrong

Regards
Chirag