Cakephp .htaccess issues

Almost 2 years ago, i developed a website for a hotel in north of india, and with the help of my Argentinian developer friend Juan, we got the site up and running and my dear friend made the website in cakephp. And now i say why oh why oh why juan you did that, lol, because of so many after changes and updates being requested by client and i cant get hold of Juan, today i finally am converting into my much-loved cms wordpress and i thought it would be just like a normal install for wordpress but cakephp gave me a big horrible error message saying my wordpess folder does not exist on server, digging things on google i found some mode rewrite issues in .htaccess which cakephp uses and finally with help of mr Google, few forum posts, stack overflow reads i finally configured and now have a working wordpress installation.

So just putting this code as a reminder to me and anyone out their like me ūüôā


<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond %{REQUEST_URI} !^/site.*
RewriteCond %{REQUEST_URI} !-f
   RewriteRule    (.*) app/webroot/$1 [L]
RewriteCond %{REQUEST_URI} !^/site.*
RewriteCond %{REQUEST_URI} !-d
   RewriteRule    (.*) app/webroot/$1 [L]


“site” — replace with your folder



54total visits,5visits today