0

I got a little problem. My client is a restaurant. I set up their site using WordPress. Now the client also started a catering business. So I created a static page for this subject in WordPress.

Of course with WordPress rewritten URLS it's now www.domain1.com/catering

Now my client ordered a second domain just for his catering business and wants to forward this domain to the static page. I tried linking via .htaccess to www.domain1.com/catering but this doesn't work of course, because it's no physical folder just a rewritten URL.

What's the right way for doing that?

Found a lot about redirecting in WordPress but nothing really gave me a simple answere i could follow. I would heavily appreciate you helping me out.

Cheers Andy

4
  • Just to clarify: You want to forward cateringdomain.com (a domain that exists in name only) to domain1.com/catering (a page that exists on your Wordpress installation)?
    – Charles
    Commented Jun 27, 2012 at 22:42
  • exactly, yes. Sorry if that is somewhat confusing. Tried to explain the best i could.
    – AndyHnida
    Commented Jun 27, 2012 at 23:21
  • Have you tried linking to the permalink of the page?
    – fdsa
    Commented Jun 27, 2012 at 23:47
  • yeah of course, doesnt work. that's my issue.
    – AndyHnida
    Commented Jun 28, 2012 at 2:58

2 Answers 2

1

I think you should try to get it to work in some other way.

It's normal it doesn't work, since the url from the page can't be changed by the .htaccess, because the url is not your permalink but the new domain.

Why not set the name server of the new url, to the old one. so they go to the same page. Then change your .htaccess, accordingly to change to your internal wordpress link when the website is visited from the new domain. That should work.

If you don't find how to change your .htaccess file accordingly let me know I can have a look.

0

There is a plugin that claims to do (we haven't tried it ourselves) what you are looking for.

It is called Domain Mapping System.

From the plugin's description:

"Domain Mapping System allows to map domains to WP pages and/or custom types."

...Imagine you've got a company website based on wordpress with the domain www.mycompany.com, all good so far. Furthermore, you've got two products with own domains, e.g. www.myregularproduct.com and www.myspecialproduct.com....

In case you haven't figured a way yet, give it a try and let us know how it goes.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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