Forum Moderators: phranque

Message Too Old, No Replies

exclude subdomain rewriting in Plesk

prevent rewriting subdomains in plesk.

         

mhamdi

2:06 pm on Apr 30, 2007 (gmt 0)

10+ Year Member



I installed a multiuser wordpress platform and have users create blogs user.domain.com using wildcards and vhosts. However I lost access to previous subdomains, now subdomain.domain.com redirects to a blog and I want to prevent this for a number of subdomains (2 or 3)
I have the following .htaccess

RewriteEngine On
RewriteBase /

#uploaded files
RewriteCond %{REQUEST_URI}!^/gallery/files/
RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L]
#RewriteRule ^(.*/)?files/$ index.php [L]

# Rewrite index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php¦html?)\ HTTP/
RewriteRule ^index\.(php¦html?)$ [domain.com...] [R=301,L]

# Rewrite non www to www
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule (.*) [domain.com...] [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

I am using plesk, so subdomains are not associated with folders, they are separate domains.

Any suggestions?