Skip to content

Instantly share code, notes, and snippets.

@amitkhare
Created December 9, 2017 18:01
Show Gist options
  • Save amitkhare/dfed75597b4d11479b86b96a7439f82c to your computer and use it in GitHub Desktop.
Save amitkhare/dfed75597b4d11479b86b96a7439f82c to your computer and use it in GitHub Desktop.
RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Headers "Content-Type"
Header set Access-Control-Allow-Methods "GET"
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment