Skip to content

Instantly share code, notes, and snippets.

@erikfig
Created March 25, 2015 13:59
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 erikfig/99f4c7d8ae66f52104bb to your computer and use it in GitHub Desktop.
Save erikfig/99f4c7d8ae66f52104bb to your computer and use it in GitHub Desktop.
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
</IfModule>
<?php
var_dump($_SERVER["PATH_INFO"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment