.htaccess - Redirect issue with cake php and html folder -


i have website in cake php host on domain root(www.example.com/) directory work fine. issue placed html template on www.exapmle.com/html when open in browser rdirect website means www.example.com , seen cake php website.

one thing asked quite lot on #cakephp how use other apps alongside cakephp, , answer giving pretty ugly. stick files/folders in side webroot/. although work, not nice. ill show little trick .htaccess files.

the first (really simple way) use .htaccess inside sub folder. example can have copy of joomla! running alongside cake no issues when have .htaccess joomla! enabled. if app not have 1 and/or not know put in .htaccess file have option

make apache stop processing rewrites if finds request sub directory. done adding rule sub directory , telling apache last rule process. .htaccess file want edit 1 found inside app directory. want add following line:

you can many sub folders wish, changing regex accordingly. pretty simple , cleaner way having stuff inside webroot/ folder of app.

source : http://goo.gl/koez9y


Comments