forward domain name to particular page?

by v3nt   Last Updated May 18, 2019 10:08 AM

I;ve got a doman alias setup for one of my Wordpress sites and i'm trying to forward that particular domain to a page.

The 2 domains are - When people use the domain i want them to be forwarded to

I've tried several things with the htaccess file but i think Worpdress may be ignoring the redirects or i've got it completely wrong!


Redirect 301

# and
RewriteCond %{HTTP_HOST} ^
RewriteRule (.*)$ [R=301,L]

best, Dc

Answers 2

First off -- does your server allow overrides in .htaccess files? If not, you need to get that turned on. My server has AllowOverride All set in its config file, which then allows my .htaccess rules to function.

Does point to the same directory as If not, then you need to put a .htaccess file in the root.

Also, if I understand your requirements correctly, the .htaccess file for needs to contain this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteRule ^(.*)$ [R=301,L]


Apache's Config File & URL Rewriting docs

I also have a mod_rewrite from but that site seems to be down now.

Pat J
Pat J
May 21, 2013 15:26 PM

Thx for this. How would this looklike if I have https and 3 different points? (Base) -> ->

Thx and best regards,

May 18, 2019 09:33 AM

Related Questions

Wordpress Multisite Redirection to new domains

Updated July 23, 2018 11:08 AM

Multisite redirect loop for a single www domain

Updated May 14, 2015 04:03 AM

Pointing to Wordpress site on GoDaddy Problems

Updated August 01, 2019 15:08 PM