• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

RewriteRule into another subscription

rewb0rn

New Pleskian
Hello,

I have several domains that each use their own subscription. Now I want to set up a MultiSite Wordpress and want to redirect selected traffic from domain A in subscription A into domain B in subscription B. Therefore I created a symbolic link inside the domain A directory that points to the domain B directory. Inside the .htaccess file I use this line for the redirect:

RewriteRule ^$ /LINK_TO_DOMAIN_B/index.php [L]

However this gives me a 403 Access denied:

"Forbidden
You don't have permission to access /domain_b/index.php on this server."


When I use the same setup, only placing domain B in subcription A (meaning domain A and domain B have the same parent folder) it works. Why?

I thought that in all cases the user would be www-data, so it should not matter if domain B is in a different subscription or not.

Thanks
 
Last edited:
Okay for anyone wondering: There were 2 issues. First I had to add Options FollowSymLinks -SymLinksIfOwnerMatch, so that Apache would follow SymLinks even if the owner is different. After that I had to add the path into the open_basedir in the php.ini so that php would run in the linked location as well.
 
Back
Top