xelax Posted December 7, 2007 Share Posted December 7, 2007 Hello, I have problem to redirect a subdomain to another directory. I have: dir1 = /var/www/vhosts/domain.com/httpdocs/ dir2 = /var/www/vhosts/domain.com/subdomain/sub1/httpdocs RewriteEngine on RewriteRule ^/$ /var/www/vhosts/domain.com/httpdocs/ I think it almosts works, but I get a 403 forbidden message when I do this. What is the problem? Or how can I do this correctly so I don't get the 403? Quote Link to comment https://forums.phpfreaks.com/topic/80663-redirect-to-other-documentroot/ Share on other sites More sharing options...
xelax Posted December 17, 2007 Author Share Posted December 17, 2007 Nobody? Quote Link to comment https://forums.phpfreaks.com/topic/80663-redirect-to-other-documentroot/#findComment-416730 Share on other sites More sharing options...
madmax Posted January 8, 2008 Share Posted January 8, 2008 Are you sure you have content in that target folder (or directory indexing enabled)?, otherwise, yep, you will get a 403 error! Quote Link to comment https://forums.phpfreaks.com/topic/80663-redirect-to-other-documentroot/#findComment-434062 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.