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 ? 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] 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
Archived
This topic is now archived and is closed to further replies.