Htaccess File

TamCore/paste.tamcore.eu/master/.htaccess

REQUEST_FILENAME
AddCharset UTF-8 .txt

ErrorDocument 403 /pastes/403.txt
ErrorDocument 404 /pastes/404.txt

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule .git/ - [F]
RewriteRule ^([A-Za-z0-9-]+).meta$ - [F]
RewriteRule ^pastes(/)$ /pastes/404.txt [L]
RewriteRule ^([A-Za-z0-9-]+).([A-Za-z]+)$ pastes/$1.txt [L]
Exit mobile version