26 lines
570 B
ApacheConf
26 lines
570 B
ApacheConf
# Block access to every file starting with a dot
|
|
<Files ".*">
|
|
Require all denied
|
|
</Files>
|
|
|
|
# Set Error documents
|
|
ErrorDocument 404 /404.php
|
|
ErrorDocument 403 /404.php
|
|
ErrorDocument 401 /404.php
|
|
|
|
# Rewrite Stuff
|
|
RewriteEngine on
|
|
RewriteBase /
|
|
Options +FollowSymLinks -Indexes
|
|
|
|
# Remove .php from the url
|
|
RewriteEngine on
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_FILENAME}\.php -f
|
|
RewriteRule ^(.*)$ $1.php
|
|
|
|
# Rewrite Rules
|
|
|
|
# Serving Images
|
|
RewriteRule ^a/([0-9]+)$ imageserve.php?m=avatar&u=$1
|
|
RewriteRule ^a/([0-9]+).png$ imageserve.php?m=avatar&u=$1
|