• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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