I am trying to create a dynamic subdomain and I am having great difficulty, I keep getting 500 Internal Server Error
So for example the actual domain should be
http://www.parameterToBePassed.domain.com/
which should point/redirect
http://www.domain.com/shopping/gatename/parameterToBePassed
However when I access this URL I get an Internal Server Error (500), any ideas?
The vhost.conf holds
ServerAlias www.domain.com domain.com *.domain.com
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !www.domain.com$ [NC]
RewriteCond %{HTTP_HOST} ^(www.)?([a-z0-9-]+).domain.com [NC]
RewriteRule (.*) http://www.domain.com/shopping/gatename/$1 [L]
</IfModule>
I am using, Redhat Linux, With Plesk