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

Hi,

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.

Cheers,

Q2A version: latest

1 Answer

+1 vote
by

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:

Cheers,

...