php - CakePHP on a Shared Hosting public_html -


i have installed cakephp on shared host server.

i 404 error

the mod_rewrite looks this

/home/user/public_html/cms/.htaccess

<ifmodule mod_rewrite.c>    rewriteengine on    rewriterule    ^$ app/webroot/    [l]    rewriterule    (.*) app/webroot/$1 [l] </ifmodule>  

/home/user/public_html/cms/app/.htaccess

<ifmodule mod_rewrite.c>     rewriteengine on     rewriterule    ^$    webroot/    [l]     rewriterule    (.*) webroot/$1    [l]  </ifmodule> 

/home/user/public_html/cms/app/webroot/.htaccess

<ifmodule mod_rewrite.c>     rewriteengine on     rewritecond %{request_filename} !-d     rewritecond %{request_filename} !-f     rewriterule ^(.*)$ index.php?url=$1 [qsa,l] </ifmodule> 

the url http://server/~user/cms , server path /home/user/public_html/cms

you have add rewritebase remove http://server/~user/ url. cake not work ~ in url


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -