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 Link to comment https://forums.phpfreaks.com/topic/63406-how-to-convert-this/ 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 Link to comment https://forums.phpfreaks.com/topic/63406-how-to-convert-this/#findComment-316604 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.