No one knows about Mod_Rewrite????????

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
heerajee
Forum Newbie
Posts: 18
Joined: Sat Feb 25, 2006 12:33 am

No one knows about Mod_Rewrite????????

Post by heerajee »

Two files on the FTP server in the folder test(index.php, check.php). index.php file has the link like
<a href="check.php">click here</a>.
:oops: This link does well, but i want that when the user clicks on this link, the check.php files opend but in the address bar the address displayed as check.html instead of check.php.
For this i am using this code but it is not working the address bar is showing the address as chec.php
***********************
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
RewriteRule ^check\.html$ check.php [T=application/x-httpd-php,L]
***********************
I will be very thankful to you for this help, wasting alot of time.
Thanks.
Last edited by heerajee on Sat Mar 11, 2006 1:58 am, edited 1 time in total.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Re: No one knows about Mod_Rewrite????????

Post by timvw »

heerajee wrote: check.php instead check.php
What am i missing here? There is no way to alter the URL in the addresbar of a browser (My browser doesn't have an address bar)
Post Reply