renatomestre/mobile-experiments/master/backbone-cellar-master/tutorial/api/.htaccess - Htaccess File

renatomestre/mobile-experiments/master/backbone-cellar-master/tutorial/api/.htaccess

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.
#
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

Header set Access-Control-Allow-Origin "*"
Header add Access-Control-Allow-Methods "GET, POST, HEAD, DELETE, PUT, OPTIONS"
Header add Access-Control-Allow-Headers "Authorization, X-Requested-With, Content-Type, Origin, Accept"
Header add Access-Control-Allow-Credentials "true"

<Limit POST GET OPTIONS>
  allow from all
</Limit>

On Github License

Files

Download PDF of Htaccess file
GET, POST, PUT, REQUEST_FILENAME, X-Requested-With

Comments

Apache