amwd07 Posted December 8, 2007 Share Posted December 8, 2007 I must be doing something wrong, I can't get this to work? Options +FollowSymLinks RewriteEngine on RewriteRule dining/town/(.*)\.php$ dining.php?town=$1 I am trying to re-write the URL below dining.php?county=shropshire&town=telford to: /dining/shropshire-telford.php Please can someone help me out with the htaccess rule ? Quote Link to comment https://forums.phpfreaks.com/topic/80713-solved-directory-type-url-rewrite/ Share on other sites More sharing options...
amwd07 Posted December 8, 2007 Author Share Posted December 8, 2007 fixed Options +FollowSymLinks RewriteEngine on RewriteRule ^dining/([^.]+)-([^.]+)\.php$ dining.php?county-$1&town=$2 [L] Quote Link to comment https://forums.phpfreaks.com/topic/80713-solved-directory-type-url-rewrite/#findComment-409628 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.