Skip to content
WJunction - Webmaster Forum

Redirect all other domains to .com

Status
Not open for further replies.
Hello all,

I have a website that has .co.uk, .in, .us, .eu and others... Currently if you visit any site it is the same but if you use a domain to enter in it will stay that on th stop browser, I want it if someone goes to

My domain.eu/hello.html

To go to

My domain.com/hello.html


Please assist. Thanks :)
 

3 comments

you need to do a htaccess redirect

Options +FollowSymLinks
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.old-domain.com$ [NC]
RewriteRule ^(.*)$ http://www.new-domain.com/$1 [R=301,L]

add all the domains you want to redirect as a rewritecond
make the rewriterule the main domain you want it redirected to
 
Hmm it will be complicated, because i dont have a different folder for each domains on my server.

Secondly i use another cpanel server that acts as a DNS Server and then points it to another server where the website is.

Is there a plugin or something for wordpress instead?
 
Status
Not open for further replies.

About the author

Sponge Bob
Active Member · Joined
3,153
Messages
192
Reactions
63
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom