View file .htaccess

File size: 1.2Kb
RewriteEngine on
RewriteRule ^u/([0-9]+)$ users/profile.php?id=$1 [L]
RewriteRule ^u$ users/profile.php?id=1 [L]


RewriteRule ^lang=([a-z]+)$ /?lang=$1
RewriteRule ^lang=([a-z]+)$ /&lang=$1

#####smiles#####
RewriteRule ^smile/page([0-9]+)$ smile.php?page=$1 [L]
RewriteRule ^smile$ smile.php [L]

######forum#########
RewriteRule ^forum/(.*).html$ /forum/index.php?act=view&id=$1

RewriteRule ^threads/([a-zA-Z0-9_-]+)_([0-9]+)/close$ forum/index.php?act=view&id=$2&close [L]
RewriteRule ^threads/([a-zA-Z0-9_-]+)_([0-9]+)/open$ forum/index.php?act=view&id=$2&open [L]
RewriteRule ^threads/([a-zA-Z0-9_-]+)_([0-9]+)/rename$ forum/index.php?act=view&id=$2&rename [L]
RewriteRule ^threads/([a-zA-Z0-9_-]+)_([0-9]+)$ forum/index.php?act=view&id=$2 [L]
RewriteRule ^threads/([0-9]+)$ forum/index.php?act=view&id=$1 [L]
RewriteRule ^threads/([0-9]+)-page=([0-9]+)$ forum/index.php?act=view&id=$1&page=$2 [L]
RewriteRule ^forum/([0-9]+)$ forum/index.php?act=topic&cid=$1 [L]



ErrorDocument 400 /err.php
ErrorDocument 401 /err.php
ErrorDocument 402 /err.php
ErrorDocument 403 /err.php
ErrorDocument 404 /err.php
ErrorDocument 500 /err.php
ErrorDocument 502 /err.php
ErrorDocument 508 /err.php