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
Issue with url
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Hint: mod_rewrite 
Re: Issue with url
Thnx to reply
I tried it but didnt get success. Can you explain me by giving an example, if its possible
Thank you
I tried it but didnt get success. Can you explain me by giving an example, if its possible
Thank you
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Re: Issue with url
Make sure you have mod_rewrite support compiled into apache. Then in httpd.conf or .htaccess: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
Code: Select all
RewriteEngine On
RewriteRule ^(.+)$ $1.php
Re: Issue with url
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
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