Created
December 13, 2011 14:49
-
-
Save wescleymatos/1472384 to your computer and use it in GitHub Desktop.
Configuração do htaccess raiz para o cakephp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Negar a acesso a tudo mundo e liberar para um ip | |
Order Deny,Allow | |
Deny from all | |
Allow from 192.168.1.103 | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
#forçar o www | |
RewriteCond %{HTTP_HOST} !^www\. [NC] | |
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301] | |
# Acessar outra pasta na raiz do servidor | |
RewriteCond $1 ^(loja).*$ [NC] | |
RewriteRule (.*) - [L] | |
#regra padrão do cake | |
RewriteRule ^$ app/webroot/ [L] | |
RewriteRule (.*) app/webroot/$1 [L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment