• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

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