Htaccess File

ghorbanzade/ghorcom/master/api/.htaccess

HTTP_HOST, REQUEST_FILENAME
RewriteEngine On

RewriteCond %{HTTP_HOST} ^www.api.ghorbanzade.com
RewriteRule (.*) http://api.ghorbanzade.com/$1 [r=301,nc]

RewriteCond %{HTTP_HOST} ^api.ghorbanzade.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^?]*)$ /index.php [NC,L,QSA]
Exit mobile version