Htaccess File

LostNerdUK/COSST/master/.htaccess

REQUEST_FILENAME
ErrorDocument 404 /error.php?code=404
ErrorDocument 403 /error.php?code=403

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^tickets/([^/]+) /tickets.php?tid=$1 [NC]
RewriteRule ^knowledgebase/categories/([^/]+) /knowledgebase.php?category=$1 [NC]
RewriteRule ^knowledgebase/article/([^/]+) /knowledgebase.php?article=$1 [NC]
RewriteRule ^knowledgebase/search/([^/]+) /knowledgebase.php?search=$1 [NC]
RewriteRule ^([^.]+)$ $1.php [NC,L]
Exit mobile version