.htaccess not working in subfolder

Posted by Staffan Estberg on Stack Overflow See other posts from Stack Overflow or by Staffan Estberg
Published on 2010-05-09T10:48:15Z Indexed on 2010/05/09 10:58 UTC
Read the original article Hit count: 266

Filed under:

Hello,

I have a couple of sites that are currently under development and I've put them under a specific subfolder for clients/co-workers to view - "http://dev.staffanestberg.com/site-name/". I've run into some problems getting the sites working with .htaccess. I can reach the index page by typing in the url for a site folder but neither img/style/js/etc linking or page rewriting works. Looking for a solution to this, Apache's "RewriteBase" seems to be the most likely one, however I can't get it to work. Tried RewriteBase http://dev.staffanestberg.com/site-name/ RewriteBase /site-name What would be the correct method?

Thanks in advance, -Staffan

© Stack Overflow or respective owner

Related posts about .htaccess