I need help... I wan't to redirect a distinct domain to a subfolder of a webspace with it's own domain name.
My rewrite rules was working on previous plesk 10.0. I tru 2 methods :
A) I've tried to add rewrite rules to additional httpd directive in apache & nginx settings of the webspace test.domain.tld but I got to the right php file but the file is downloaded. I've tried to disable fastcgi support or to add httpd directive to setup php but no changes.
B) I've added theses rules to a .htaccess file on inside webspace httpdocs. But it seems to be ignored because main webspace is loaded without subfolder. FollowSystemLink is not disabled.
The rewrite rules are :
ServerAlias demo.domain.tld
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?demo\.domain\.tld$ [NC]
RewriteRule !^subdir/ /subfolder/%{REQUEST_URI} [L,NC]
I also tried to remove Server Alias but that changes nothing. I guess because the domain is attached towebspace in plesk panel.
My config is :
OS: Ubuntu 14.04.3 LTS
Plesk version: 12.5.30 Update #13
My rewrite rules was working on previous plesk 10.0. I tru 2 methods :
A) I've tried to add rewrite rules to additional httpd directive in apache & nginx settings of the webspace test.domain.tld but I got to the right php file but the file is downloaded. I've tried to disable fastcgi support or to add httpd directive to setup php but no changes.
B) I've added theses rules to a .htaccess file on inside webspace httpdocs. But it seems to be ignored because main webspace is loaded without subfolder. FollowSystemLink is not disabled.
The rewrite rules are :
ServerAlias demo.domain.tld
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?demo\.domain\.tld$ [NC]
RewriteRule !^subdir/ /subfolder/%{REQUEST_URI} [L,NC]
I also tried to remove Server Alias but that changes nothing. I guess because the domain is attached towebspace in plesk panel.
My config is :
OS: Ubuntu 14.04.3 LTS
Plesk version: 12.5.30 Update #13
Last edited: