Domain redirection
-
I’m not sure this is specific to Multisite – but that’s what I’m running.
I’ve built a new site for a customer, and it’s happily running on a test domain that I have.
The new domain (or rather the old website domain name) is now pointing to my host at 12.34.56.789, as per the multisite network page info. However, this is my 1and1 account, that hosts many things.
My wordpress installation is located at /blog. So I really want to redirect mynewwebsite.co.uk to /blog – where I’ve set up mynewwebsite.co.uk as a primary domain for it, using the domain mapping plugin
So – I need a .htaccess file in the root directory to redirect mynewwebsite.co.uk to the /blog directory.
I’ve now tried countless variations and I still get a 404 not found for mynewwebsite.co.uk
RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} ^(www\.)?mynewwebsite\.co.uk$ RewriteCond %{REQUEST_URI} !^/blog RewriteRule ^(/)?$ blog [L]
Any ideas, does tyhe .htaccess in the /blog directory interfere? I can get the doamin name transfered into my 1and1 account – but ideally I’d like to get this working as is….
- The topic ‘Domain redirection’ is closed to new replies.