Page 1 of 1

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

Posted: Sat Nov 10, 2007 8:10 am
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

Posted: Sat Nov 10, 2007 4:35 pm
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.