lordphate Posted April 2, 2008 Share Posted April 2, 2008 Hey everyone, So i've got a set of rewrite rules Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]+)/ profiles/index.php?folder=$1&%{QUERY_STRING}$ [L] RewriteRule (.*)-(.*)-(.*)-(.*)\.html index.php?page=$1§ion=$2&category=$3&subcategory=$4&%{QUERY_STRING}$ [L] RewriteRule (.*)-(.*)-(.*)\.html index.php?page=$1§ion=$2&category=$3&%{QUERY_STRING}$ [L] RewriteRule (.*)-(.*)\.html index.php?page=$1§ion=$2&%{QUERY_STRING}$ [L] RewriteRule ^([^.]+)\.html index.php?page=$1&%{QUERY_STRING}$ [L] RewriteRule ^articles/[a-z0-9_-]+/([0-9]+)\.html$ index.php?page=articles&art_id=$1&%{QUERY_STRING}$ [L] However i can't get the last one to work... Any ideas ? I wanted it something like www.domain.com/articles/Why-The-Man-Walked-The-Moon/10.html (10 being the art_id) Quote Link to comment https://forums.phpfreaks.com/topic/99203-i-know-im-close/ 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.