Jump to content

Redirect to other documentroot


xelax

Recommended Posts

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?

 

Link to comment
https://forums.phpfreaks.com/topic/80663-redirect-to-other-documentroot/
Share on other sites

  • 2 weeks later...
  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.