Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
  • Register
Welcome to the Q&A for Question2Answer.

If you have questions about the platform, click here to ask and please use English.

If you just want to try Q2A, please use the demo, which also grants admin access.

Apr 29: Q2A 1.5.2

How to redirect Q&A folder - parked domain to main domain

+1 vote
Hi there,

I have a couple of domains parked on my main domain.

Redirects are all working fine, except for the Q&A folder, which keeps displaying the parked domain. I tried everything I could think of and also the solutions that were already posted here....in both my main .htaccess and the one in the Q-A folder, to no avail.

So - www.parkeddomain.com/Q-A

should redirect to www.maindomain.com.nl/Q-A

I must  be missing something.... any help is very much appreciated...!
asked Jan 29, 2011 in Q2A Core by Floris Van Onna

1 Answer

0 votes

I think this should work, put it in the htaccess on the root of the parked domain:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.parkeddomain.com$ [NC]
RewriteRule ^Q-A/(.*)$ http://www.maindomain.com/Q-A/$1 [R=301,L]
answered Feb 1, 2011 by DisgruntledGoat
Yeah, not sure I'm following, sorry... so you're saying everything on the parked domain redirects to the main domain OK? So parked.com/q-a/123/whatever redirects to main.com/q-a/123/whatever ?

Where is the parked domain being displayed? You mean all the links on main.com show as parked.com ??

Are you able to post the domains so I can take a look myself?
It's pretty simple actually.

My redirects are working fine.. all of them. All my old files on the old (and now parked) domain are being redirected to the same files on my new domain.

When I type the parked domain I always get and see the new domain in the addressbar.... just not when I type in the q-a folder -> it keeps showing the parked domain. I have more parked domains and it does this for all of them.

The problem is within the .htaccess of the q-a folder, because when I rename the.htaccess the redirect works as it should.

It has to do with the rewriting to get the pretty URL structure (you can choose this in admin o the q-a script) which works better for SEO, because I now turned it off and it's working properly... just without the pretty file structure, but I don't really care about that.

I'd rather not post the domain cause I'm sure 100s of people will come and check the site and it messes up my statistics like bounce rate, etc.

If you want to reach me you can though, just look at my profile and check one of the sites!