-
-
Save victorcosta12/1507284 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
<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