added .htaccess
This commit is contained in:
14
website/.htaccess
Normal file
14
website/.htaccess
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Options +FollowSymLinks
|
||||||
|
RewriteEngine On
|
||||||
|
|
||||||
|
ErrorDocument 404 /error404.jpg
|
||||||
|
|
||||||
|
RewriteCond %{SCRIPT_FILENAME} !-d
|
||||||
|
RewriteCond %{SCRIPT_FILENAME} !-f
|
||||||
|
|
||||||
|
# Resolve .php file for extensionless php urls
|
||||||
|
RewriteRule ^([^/.]+)$ $1.php [L]
|
||||||
|
|
||||||
|
RewriteRule ^([^/.]+)\/$ $1.php [L]
|
||||||
|
|
||||||
|
RewriteRule ^profile/([A-z0-9]+)\/?$ profile.php?username=$1 [NC]
|
||||||
Reference in New Issue
Block a user