Redirect to subdomain not working
I want that users going to
Right now I'm using this in the .htaccess
RedirectMatch 301 ^(.*)$ / http://subdomain.domain.com/$1
But it doesn't work. Any idea?
Thank you in advance
3 Replies
Another possibility is to place an index.html in the web root for domain.com that contains the following code (adjust as necessary):
<title>Your Page Title</title>
Optional page text here.
This is basically just an html redirect, so when someone visits domain.com and their browser loads index.html, it will see the tag telling it to "refresh to url", or in other words, to redirect to another url.
RewriteEngine on
Then below this, you may define your rewrites/redirects.