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
mod_rewrite is not working!!!!!!!1
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
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.