I Need .htaccess help- for redirecting all subdomains.

2 replies
I want to redirect all subdomains, that are not set up yet, there will be hundreds, and I thought there was a way to set it up in .htacces

I want whatever sub.domain.com that gets typed in to go to domain.com

However I already have wordpress in this domain, so I have the following already in the .htaccess

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>

# END WordPress


Mary
#htaccess #redirecting #subdomains

Trending Topics