raezr
12-18-2006, 10:04 PM
I recently set up a subdomain and I need to activate PHP5 to use simplexml functions. So I entered this in my .htaccess:RewriteEngine On
RewriteCond %{HTTP_HOST} !(www\.)?php\.
RewriteCond %{SCRIPT_FILENAME} \.php$ [OR]
RewriteCond %{SCRIPT_FILENAME} /$
RewriteCond %{SERVER_NAME} (www\.)?(.+)
RewriteRule ^(.*)$ http://www.php.%2:9000/$1 [P,L]
However, when I try to view the subdomain it will redirect me from "http://subdomain.domain.net/" to "https://www.php.subdomain.domain.net:19638/webhost/rollout/site" which asks me to log into my admin panel. And if I try to access any files on the subdomain it returns a 404 message. This same .htaccess code works fine on my normal domain, so I'm not sure what to do.
RewriteCond %{HTTP_HOST} !(www\.)?php\.
RewriteCond %{SCRIPT_FILENAME} \.php$ [OR]
RewriteCond %{SCRIPT_FILENAME} /$
RewriteCond %{SERVER_NAME} (www\.)?(.+)
RewriteRule ^(.*)$ http://www.php.%2:9000/$1 [P,L]
However, when I try to view the subdomain it will redirect me from "http://subdomain.domain.net/" to "https://www.php.subdomain.domain.net:19638/webhost/rollout/site" which asks me to log into my admin panel. And if I try to access any files on the subdomain it returns a 404 message. This same .htaccess code works fine on my normal domain, so I'm not sure what to do.