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

What file /fragment of a code do I need to edit in v1.6.3 to include a custom URL prefix for each of the question pages,

i.e. to change a current:

mysite.com/1234/question-title-text

to:

mysite.com/answerit/1234/question-title-text

where "answerit" is my custom prefix.

Just to be clear, I do not want to change the prefix for the list of questions that can be controlled with $QA_CONST_PATH_MAP easly by "'questions' => 'custom_prefix',", but I would like to change the URL for actual question pages, so the rest (i.e. tags) stays the same.

mysite.com/tags

As a related question:

How to include the category name in the question URL?

i.e. after combining with first request:

mysite.com/answerit/category_name/1234/question-title-text

I do realise that changing a category will not work backwords in that case, or?

Thanks a lot!

 

Q2A version: 1.6.3

Please log in or register to answer this question.

...