Am working with cakePHP. And i installed and configured everything. And Am using the virtual host also. When i call the base url, i get all the css and js files loaded. but when i included the method name in the url, it shows not found. I think it is due to some url rewriting problem. My project directory is /var/www/html/Betting/ My .htaccess (/var/www/html/Betting/.htaccess)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
And (/var/www/html/Betting/app/.htaccess) is
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
And (/var/www/html/Betting/app/webroot/.htaccess) is
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ webroot/ [L]
RewriteRule (.*) webroot/$1 [L]
</IfModule>
If I call the URL http://betting.spark.com/site everything is fine. But i call http://betting.spark.com/site/index it is not loading the css and js files. Any help would be appreciated. :)