Jump to content

I know i'm close...


lordphate

Recommended Posts

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&section=$2&category=$3&subcategory=$4&%{QUERY_STRING}$ [L]
RewriteRule (.*)-(.*)-(.*)\.html index.php?page=$1&section=$2&category=$3&%{QUERY_STRING}$ [L]
RewriteRule (.*)-(.*)\.html index.php?page=$1&section=$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)

 

 

Link to comment
https://forums.phpfreaks.com/topic/99203-i-know-im-close/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.