Skip to content

Instantly share code, notes, and snippets.

@tallesairan
Forked from umidjons/restfull-htaccess
Last active March 11, 2019 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tallesairan/717de5b68950785f9f6d787d4c03753f to your computer and use it in GitHub Desktop.
Save tallesairan/717de5b68950785f9f6d787d4c03753f to your computer and use it in GitHub Desktop.
Allow GET,POST,PUT,DELETE RESTful requests in .htaccess
#apache 2.2 or 2.4
<Limit GET HEAD POST PUT DELETE OPTIONS>
# Deprecated apache 2.2 syntax:
# Order Allow,Deny
# Allow from all
# Apache > 2.4 requires:
Require all granted
</Limit>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment