View Single Post
06-20-2012, 05:44 PM
Dan is offline Dan
Dan's Avatar
Status: Request a custom title
Join date: Feb 2005
Posts: 3,164
iTrader: 15 / 86%

Dan is an unknown quantity at this point

  Old  Merging these three rewrites? htaccess

RewriteRule ^forums$                   pages/forum.php [L]
RewriteRule ^forums/([A-z]+)$          pages/forum.php?category=$1 [L]
RewriteRule ^forums/([A-z]+)/([A-z]+)$ pages/forum.php?category=$1&sort=$2 [L]
Is it possible to merge these three lines into one? I use to be able to do this but it's been so long I've forgotten.

EDIT: RewriteRule ^forums(/([A-z]+)(/([A-z]+))?)?$ pages/forum.php?category=$2&sort=$4 [L]

Reply With Quote