Skip to content

Instantly share code, notes, and snippets.

@samatsav
Created September 20, 2013 13:48
Show Gist options
  • Save samatsav/6637840 to your computer and use it in GitHub Desktop.
Save samatsav/6637840 to your computer and use it in GitHub Desktop.
Rewrite clean URL .htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php?q=%{REQUEST_URI} [L]
// SAU ALTA VARIANTA MAI BUNA PT PHP EASE(17.10.2013)
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment