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


I've noticed on an url like this : http://yoursite.com/3/what-name, you can change the last part (what-name here) with what you want. The selection is then done with the ID.

Is there a way to always redirect (301) the user the the full URL ? This because I don't want any duplicates for SEO.


Q2A version: latest

1 Answer

+1 vote

Hi there,

Yes, there is. The key part for making it work is adding this line of code:

header("HTTP/1.1 301 Moved Permanently");

in the right place. Check out this answer explaining how to do it for Question2Answer version 1.8.5: