kalyan02 Posted August 5, 2007 Share Posted August 5, 2007 How do i convert the original url /index.php?slug=services&p=more to this more understandable one /service.php?p=more I tried using this but failed RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/.]+)(?)([^/]+)/?$ index.php?slug=$1 [L] any help would be appreciated Quote Link to comment Share on other sites More sharing options...
hackerkts Posted August 6, 2007 Share Posted August 6, 2007 Try this, RewriteRule ^index.php?slug=([a-z]+)&p=([a-z]+)$ $1.php?p=$2 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.