PixelCheeseCake/PixelCC-Forums/Master/.htaccess
# Apache Rewrite Rules
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
# Add trailing slash to url
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.[a-zA-Z0-9]{1,5}|/|#(.*))$
RewriteRule ^(.*)$ $1/ [R=301,L]
# Remove .html-extension from url
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^([^.]+)/$ $1.html
# End of Apache Rewrite Rules
</IfModule>
# Not Found
ErrorDocument 404 /404.html
# Service Unavailable
ErrorDocument 503 /503.html
# Bad Request
ErrorDocument 400 /400.html
# Unauthorized
ErrorDocument 401 /401.html
On Github License
Files