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

Request: Can we add a www-rewrite for (www.)question2answer.org/qa?

+1 vote
asked Aug 15, 2012 in Q2A Core by q2apro

This is a personal request: I am bookmarking some interesting pages of this q2a forum and found duplicates now. How comes:

You can use www.questions2answer.org/qa/... or questions2answer.org/qa/... for a page!

Both are taken into consideration, which is not only problematic for my bookmark tool but also for search bots as "www" is a subdomain as well, so we should actually have duplicate content indexed here.

@gidgreen: Bad or good idea to htaccess rewrite all pages to www.question2answer.org/qa/...?

# Rewrite all domains to one domain
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.question2answer\.org [NC]
RewriteRule (.*) http://www.question2answer.org/$1 [R=301,L]

1 Answer

0 votes
answered Aug 19, 2012 by Pachelbel
I tried this yesterday but I don't know why the site got messed up.