Jump to content

All Pages index.php?page=...how do i make pretty URLS ?


lordphate

Recommended Posts

Hi Everyone, this is what i have, for the most part it works out pretty well

 

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+) profiles/index.php?folder=$1&%{QUERY_STRING}$ [L]
RewriteRule ^articles/^[a-z0-9_-]+/([0-9]+)\.html index.php?page=articles&art_id=$1&%{QUERY_STRING}$ [L,NC]
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]

 

The only thing that doesn't work is the

RewriteRule ^articles/^[a-z0-9_-]+/([0-9]+)\.html index.php?page=articles&art_id=$1&%{QUERY_STRING}$ [L,NC]

Any ideas on this ?

 

Thanks in advance!!

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.