apache - Configuring CakePHP .htaccess in Cpanel ~temp/ URL -


i'm trying set cakephp 2.x in cpanel (hostmonster) while domain of site still pointing older server. in order pull site without domain (for demo), have use http://[hosting-ip-address]/~mysite.

this default .htaccess file located in root (the 1 before app/ folder):

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

if leave is, 404 error. when remove .htaccess file or leave blank, site content loads, without css. site files located in /home2/mysite/public_html/ folder. tried adding rewritebase different combinations (~mysite, mysite, mysite/public_html), no avail.

try in htaccess file:-

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

hope work!


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -