RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php?a=$0 [L]
RewriteEngine on
################ Require ending trailing slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301,L]
################ Beautify dynamic url sets
#here are our rewrite rules for the different urls
Options +FollowSymLinks
RewriteEngine on
################ Require ending trailing slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301,L]
################ Beautify dynamic url sets
RewriteRule ^join/ index.php?a=join [L]
RewriteRule ^user_cpl/ index.php?a=user_cpl [L]
RewriteRule ^stats/(.*)/ index.php?a=stats&u=$1 [L]
RewriteRule ^stats/ index.php?a=stats [L]
RewriteRule ^lost_pw/ index.php?a=lost_pw [L]
RewriteRule ^review/(.*)/ index.php?a=rate&u=$1 [L]
RewriteRule ^reviews/(.*)/ index.php?a=stats&u=$1&all_reviews=1 [L]
RewriteRule ^category/(.*)/ index.php?cat=$1 [L]
RewriteRule ^rank/(.*)/(.*)/category/(.*)/ index.php?start=$1&method=$2&cat=$3 [L]
RewriteRule ^rank/(.*)/category/(.*)/ index.php?method=$1&cat=$2 [L]
RewriteRule ^rank/(.*)/(.*)/ index.php?start=$1&method=$2 [L]
RewriteRule ^rank/(.*)/ index.php?method=$1 [L]
RewriteRule ^search/(.*)/(.*)/ index.php?a=search&start=$1&q=$2 [L]
RewriteRule ^search/(.*)/ index.php?a=search&q=$1 [L]
RewriteRule ^search/ index.php?a=search [L]
RewriteRule ^page/(.*)/ index.php?a=page&id=$1 [L]
################ Beautify Mod urls
RewriteRule ^app/(.*)/ index.php?app=$1 [L]