Using the default cakephp
htaccess file setup will not work on my domain when I want to install my Cakephp app in
a subfolder, while everything works on localhost
(xampp)
target => href="http://example.com/mycakeapp" rel="nofollow
noreferrer">http://example.com/mycakeapp
Install
needs 3 htaccess files:
root
.htaccess
#.htaccess in root
RewriteEngine on
RewriteBase /mycakeapp
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.) app/webroot/$1
[L]
in app
.htaccess
RewriteEngine
on
RewriteBase /mycakeapp
RewriteRule ^$ app/webroot/
[L]
RewriteRule (.) app/ webroot/$1 [L]
in webroot .htaccess
RewriteEngine On
RewriteBase
/mycakeapp
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php
[QSA,L]
Following
cakephp documentation, and Using these htaccess files, I get error500
results.
Using RewriteBase / instead of /mycakeapp will throw 404 error
page.
php is in 5.4
version
How can I solve this?
No comments:
Post a Comment