Skip to content

Instantly share code, notes, and snippets.

@caionorder
Created August 12, 2015 13:41
Show Gist options
  • Save caionorder/4707f1f1392edd86d5d8 to your computer and use it in GitHub Desktop.
Save caionorder/4707f1f1392edd86d5d8 to your computer and use it in GitHub Desktop.
RewriteEngine on
DirectoryIndex pararaio.php
Options All -Indexes
#non-www to www
RewriteCond %{HTTP_HOST} ^datacoper\.com\.br
RewriteRule (.*) http://www.datacoper.com.br/$1 [R=301,L]
#RewriteCond %{HTTP_HOST} ^agenciapararaio.com.br$ [NC,OR]
#RewriteCond %{HTTP_HOST} ^www.agenciapararaio.com.br$
#RewriteCond %{REQUEST_URI} !datacoper/
#RewriteRule (.*) /datacoper/$1 [L]
RewriteCond $1 !^(pararaio\.php|phpmyadmin_|liveadmin|blog|news|painel|assets|robots\.txt|favicon|v2)
RewriteRule ^(.*)$ pararaio.php/$1 [L]
#RewriteRule \.(downloads)$ - [F]
#RewriteRule ^(assets/downloads) - [F,L,NC]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment