Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
758 views
in Q2A Core by

Let me clear it first:

  1. I have a q2a site, with more than 1000 questions and 1500 answers and 800+ users as of now.
  2. My website was using this permalink - /?qa=123/why-do-birds-sing  (I tried to change to the first one (good for seo) but unable to do that in 1.5.4 version)
  3. Now, updated to 1.6 and everything is fine, so changed the permalinks to /123/why-do-birds-sing (requires htaccess file) 
  4. Now, I have done noindex, follow to all tag, users, pages etc etc by using SEO meta Tags plugin. I wasn't able to do this while in th /?qa=123 permalinks (reason unknown)
  5. Now, Google already indexed /?qa=123 permalinks and I know it wil start indexing the new permalinks.
  6. But, I want to redirect my old permalinks to the new one
  7. I am still able to reach any page via old permalinks as well as new permalinks....
  8. Pease give me a solution to redirect every old permalinks to new respective one...
Q2A version: 1.6
by
anyone has the solution? I still need the answer

1 Answer

+2 votes
by

/?qa=123/why-do-birds-sing → /123/why-do-birds-sing

setup a htaccess to redirect those links with flag 301:

# OLD LINKS REDIRECT TO NEW LINKS, non q2a example:
RewriteRule ^2009\/06\/test.html$ test$1 [R=301,L]

you need to set up the correct rewrite rule, this you have to find out yourself...

...