old problem: subdomain with www - SOLVED
Hi @all!
I have this old problem: I want to create a subdomain with www. in front of it.
I use Plesk 7.5.3 with SuSe 9.1.
I tried to use DNS settings, but that doesn't really function. As anyone knows.
So I testet the version with the vhost.conf file.
This is my vhost.conf:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteMap lowercase int:tolower
ServerAlias www.<sub>.<domain>.com
RewriteCond %{HTTP_HOST} ^www.<sub>.<domain>.com$
RewriteCond %{REQUEST_URI} !^/home/httpd/vhosts/<domain>/subdomains/<sub>/httpdocs/
#RewriteCond %{REQUEST_URI} !error_docs
RewriteRule (.*) /home/httpd/vhosts/<domain>/subdomains/<sub>/httpdocs/$1
</IfModule>
OK. The browser opens the right site, but PHP is disabled. So the browser wants to download the *.php files.
Has anybody a solution for that problem?
Thanx!
HMnet
Hi @all!
I have this old problem: I want to create a subdomain with www. in front of it.
I use Plesk 7.5.3 with SuSe 9.1.
I tried to use DNS settings, but that doesn't really function. As anyone knows.
So I testet the version with the vhost.conf file.
This is my vhost.conf:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteMap lowercase int:tolower
ServerAlias www.<sub>.<domain>.com
RewriteCond %{HTTP_HOST} ^www.<sub>.<domain>.com$
RewriteCond %{REQUEST_URI} !^/home/httpd/vhosts/<domain>/subdomains/<sub>/httpdocs/
#RewriteCond %{REQUEST_URI} !error_docs
RewriteRule (.*) /home/httpd/vhosts/<domain>/subdomains/<sub>/httpdocs/$1
</IfModule>
OK. The browser opens the right site, but PHP is disabled. So the browser wants to download the *.php files.
Has anybody a solution for that problem?
Thanx!
HMnet