Mod_rewrite does not work for friendly url

Discuss practical ways rearrange URLs using mod_rewrite.

Mod_rewrite does not work for friendly url

Postby testUser » Tue Mar 21, 2006 4:36 am

Hey guys,

I've modified the conf file to set the rewrite engine on and done all the necessary chgs

my url is
http://localhost/friendlyurls/index.php?id=1
which I want the flwg way

http://localhost/friendlyurls/diseases/1

Mod rewrite code:

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^diseases/([a-z]+)-([0-9])$ /index.php?article=$1-$2 [R=301,L]

.htaccess and index.php and article1 all are in the same folder


anybody plzzzzzzzz help. I am completly new to this. I've tried a lot.
needs urgently

sad.jpg
testUser
 
Posts: 1
Joined: Tue Mar 21, 2006 4:18 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 23 guests

cron