My web host points my "main" domain name to the root www folder. The web files for that site are located in the "www/app/webroot" folder. I currently have the site up and running using the following in the htaccess file: RewriteEngine on RewriteRule ^$ app/webroot/ [L] RewriteRule (.*) app/webroot/$1 [L] Code (markup): I'm trying to start a dev site for the same site. I made a folder named "dev" in the www folder. So, the web files for this folder are in: "www/dev/app/webroot" I have a sub-domain pointing to the dev folder. When I use the same htaccess as above in the dev folder, it doesn't work because (I believe) it is inheriting the settings from the root www folder. When the page loads, it just comes up blank. How do I set up my htaccess files to allow for both sites? Thanks in advance for any help! I'm obviously a novice at this stuff.
Try to below code RewriteEngine on RewriteRule ^$ dev/app/webroot/ [L] RewriteRule (.*) dev/app/webroot/$1 [L]
Tried this, unfortunately, it didnt work. If I do that at the root www folder, then the main site stops working. If I do that in the htaccess file at www/dev, then I get a 500 error, I am assuming because its looking for a directory of www/dev/dev/app/webroot, which doesnt exist.