Skip to content

Instantly share code, notes, and snippets.

@softwarespot
Created September 1, 2015 05:14
Show Gist options
  • Save softwarespot/56812ed4db30ece5ba06 to your computer and use it in GitHub Desktop.
Save softwarespot/56812ed4db30ece5ba06 to your computer and use it in GitHub Desktop.
Apache .htaccess configuration
RewriteEngine On
# The base URL path
# If your URL is www.example.com/, then use /
# If your URL is www.example.com/site_folder/www, then use /site_folder/www/
RewriteBase /
# Do not enable rewriting for files or directories that exist
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
# For requests that aren't actually files or directories, Rewrite to index.php/URL_PATH
RewriteRule ^(.*)$ index.php/$1 [PT,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment