Files
WebDB/website/public/.htaccess
Marijn Jansen 20b951cad2 404 page
2017-01-30 14:30:36 +01:00

12 lines
291 B
ApacheConf

Options +FollowSymLinks
RewriteEngine On
ErrorDocument 404 /error/404.php
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
# Resolve .php file for extensionless php urls
RewriteRule ^([^/.]+)$ $1.php [L]
RewriteRule ^profile/([A-z0-9]+)$ profile.php?username=$1 [NC]