Skip to content

Instantly share code, notes, and snippets.

@itswadesh
Last active March 27, 2017 16:58
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 itswadesh/a598f60325a9902bd7fd273c771cf62e to your computer and use it in GitHub Desktop.
Save itswadesh/a598f60325a9902bd7fd273c771cf62e to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-s
RewriteRule ^(.*)$ api.php?x=$1 [QSA,NC,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.*)$ api.php [QSA,NC,L]
RewriteCond %{REQUEST_FILENAME} -s
RewriteRule ^(.*)$ api.php [QSA,NC,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment