Skip to content
Snippets Groups Projects
Commit 171011ee authored by Jared Hancock's avatar Jared Hancock
Browse files

Fix API .htaccess file

Before it required an edit for osTicket installations made to a folder other
than the root of a domain or subdomain. Now, the installation path is
autodetected and rewritted.

Also, don't assume that every Apache installation has mod_rewrite support.
parent 6a51b7f0
No related branches found
No related tags found
No related merge requests found
RewriteEngine On
<IfModule mod_rewrite.c>
RewriteBase /api/
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.*/api)
RewriteRule ^(.*)$ %1/http.php/$1 [L]
RewriteRule ^(.*)$ http.php/$1 [L]
</IfModule>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment