I making cakephp 3.0 web app.
I want to cakephp exclude url for static html folder.
/app/webroot/exclude/some.html
/app/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L]</IfModule>
webroot/.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On RewriteCond %{REQUEST_URI} !^/exclude/(.*) # add this Line on default RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L]</IfModule>
참고 :
http://stackoverflow.com/questions/2249885/cakephp-htaccess-mod-rewrite-configuration-to-exclude-a-particular-folder-url
http://hangaebal.blogspot.kr/2015/07/cakephp-htaccess-modrewrite-edit-for.html
'Blogger 이사' 카테고리의 다른 글
[Javascript] 최대 바이트 제한 (string max byte length) (0) | 2016.04.04 |
---|---|
[Javascript] milliseconds to time string (0) | 2016.04.04 |
[php] increase max upload size (wordpress) (0) | 2016.04.04 |
[apache] change run user, group (0) | 2016.04.04 |
[cakephp] not found the requested url (apache) (0) | 2016.04.04 |