/
.htaccess
25 lines (22 loc) · 935 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Order Deny,Allow
Allow from all
ErrorDocument 400 /index.php
ErrorDocument 401 /index.php
ErrorDocument 402 /index.php
ErrorDocument 403 /index.php
ErrorDocument 404 /404
ErrorDocument 500 /index.php
ErrorDocument 501 /index.php
ErrorDocument 502 /index.php
ErrorDocument 503 /index.php
Options -Indexes
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteRule ^([a-zA-Z0-9\-\_]+)[/]*$ /index.php?cmd=$1 [NC,L]
RewriteRule ^([a-zA-Z0-9\-\_]+)[/]*([a-zA-Z0-9\-\_]+)[/]*$ /index.php?cmd=$1&arg1=$2 [NC,L]
RewriteRule ^([a-zA-Z0-9\-\_]+)[/]*([a-zA-Z0-9\-\_]+)[/]*([a-zA-Z0-9\-\_]+)[/]*$ /index.php?cmd=$1&arg1=$2&arg2=$3 [NC,L]
RewriteRule ^([a-zA-Z0-9\-\_]+)[/]*([a-zA-Z0-9\-\_]+)[/]*([a-zA-Z0-9\-\_]+)[/]*([a-zA-Z0-9\-\_]+)[/]*$ /index.php?cmd=$1&arg1=$2&arg2=$3&arg3=$4 [NC,L]
AddDefaultCharset utf-8
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ /$1 [R=301,L]