Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have my wordpress blog at firstdomain.com/blog and I want to access the blog as seconddomain.com. How do I set up seconddomain.com to make it happen?

If I'm not wrong, the steps involved are:

  1. forward the domain seconddomain.com to blog.firstdomain.com (I have created blog.firstdomain.com subdomain)
  2. forward blog.firstdomain.com to firstdomain.com/blog

I want to do so in such a way that:

  1. At the end of this setting, when i click on seconddomain.com/abc, it points to firstdomain.com/blog/abc
  2. The address bar shows seconddomain.com/abc even after redirection mentioned in #1
  3. The approach is SEO friendly.
  4. When I hover on the link on the blog, the status bar should display seconddomain.com/... and not firstdomain.com/blog/...
share|improve this question

migrated from stackoverflow.com Jan 17 '12 at 13:42

This question came from our site for professional and enthusiast programmers.

Can you use an .htaccess file? –  cha0site Jan 6 '12 at 8:21
on firstdomain.com? yes –  James Jan 6 '12 at 9:57
use .htaccess ndesign-studio.com/blog/301-htaccess-redirect –  Manigandan Arjunan Jan 16 '12 at 7:26

2 Answers 2

up vote 1 down vote accepted

The answer is dependent on what kind of providers you use for both domain and hosting, what they use as software and possibly what sort of control panels they offer. It does not sound like you do the hosting yourself, but then the answer would be: Point seconddomain.com to the same IP as firstdomain.com (by modifying the A record), and use VirtualHost or similar directives on the (web) server to deliver the content that is currently served by firstdomain.com/blog when people access seconddomain.com. Then you might want to redirect firstdomain.com/blog/* to seconddomain.com/* .

It's really not easy to answer without knowing details. If both domains and hosting are maintained by someone for you, it's best to ask there.

share|improve this answer

Yes you can do this by using the domain forwarding option. In your domain control panel you can find the option to forward your domain, if not ask your domain name registrar and make use of that service. In your seconddomain.com, just put the forwarding path to firstdomain.com/blog.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.