14 lines
411 B
ApacheConf
14 lines
411 B
ApacheConf
|
RewriteEngine On
|
||
|
RewriteBase /
|
||
|
RewriteRule ^error[0-9]+\.html - [PT,L,QSA]
|
||
|
RewriteRule ^website/.* - [PT,L,QSA]
|
||
|
RewriteRule ^admin/.* - [PT,L,QSA]
|
||
|
RewriteRule ^api/(.*) - [PT,L,QSA]
|
||
|
RewriteRule ^api.php$ api/plain.php [QSA,L]
|
||
|
RewriteCond $0 !.+\.php$
|
||
|
RewriteRule ^([0-9a-z]+)(\.[a-z]+)? expand.php?id=$1&ext=$2
|
||
|
|
||
|
ErrorDocument 404 /error404.html
|
||
|
ErrorDocument 403 /error403.html
|
||
|
ErrorDocument 500 /error500.html
|