mod_rewrite is not working!!!!!!!1

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
dotphp
Forum Commoner
Posts: 25
Joined: Sat Nov 10, 2007 8:03 am

mod_rewrite is not working!!!!!!!1

Post by dotphp »

In the first place: i take it off the comment from the mod_rewrite module.
Restart server.

I have a website where on the page I have the following link:

http://localhost/infogen/site/stiri.php?cat=med&id=147

In .htaccess I put the following cod:

Options +FollowSymLinks
RewriteEngine on
RewriteRule stiri-cat-(.*)-id-(.*)\.htm$ stiri.php?cat=$1&id=$2


After I put the htaccess file still it's show me the link from the above.
I been aspected to see the following link:

http://www.infogen.ro/stiri-cat-med-id-147.htm


Anybody know that's wrong?
Thanks in advance
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

All mod_rewrite does is translate the requested URI into the served URI. So a request to http://somesite.com/this/is/a/request could end up being served from http://somesite.com?page=this_is_a_request. That is all it does.
Post Reply