-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.htaccess
More file actions
19 lines (15 loc) · 717 Bytes
/
.htaccess
File metadata and controls
19 lines (15 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php
RewriteEngine On
RewriteRule ^avatars/(.*) /defaultStorage.php?fold=avatars&id=$1 [B]
RewriteRule ^banners/(.*) /defaultStorage.php?fold=banners&id=$1 [B]
RewriteRule ^pavatars/(.*) /defaultStorage.php?fold=pageAvatars&id=$1 [B]
RewriteRule ^pbanners/(.*) /defaultStorage.php?fold=pageBanners&id=$1 [B]
RewriteRule ^users/(.*) /profile.php?id=$1 [B]
RewriteRule ^pages/(.*) /page.php?id=$1 [NC,QSA,L]
RewriteRule ^posts/(.*) /posts.php?id=$1 [L]
RewriteRule ^chat/(.*) /chat_r.php?chan=$1 [B]
RewriteRule ^groups/(.*) /groups.php?id=$1 [B]
RewriteRule ^blog/(.*) /blog_r.php?id=$1 [B]
RewriteCond %{REQUEST_FIBENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]