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

As I knows,Q2A's Nav URL looking like this:

http://domain.com/questions

and the Question URL looking life this

http://domian.com/1111-some-thing-about-questions

So the English URL is not friendly for my language,and I found a way to change URL looking,

I added

if (is_numeric($requestparts[0])) {
unset($requestparts[1]);
}

after

$requestparts=explode(‘/’, $request);

in the corefile

question2answer\qa-include\qa-base.php

so now the URL will be like this

Nav URL looking:

http://domain.com/questions

Question URL looking:

http://domian.com/1111

But I found with only number"1111" after domain is too short……

I wanna it like this

http://domian.com/q/1111

or

http://domian.com/q/qn1111

and I also want Nav URL keeps looking like this

http://domain.com/questions

and if it really difficult to do,looks like this would be ok too

http://domian.com/q/questions

Are there any solutions?

sorry for my poor English,Hope you guys could understand me.

Q2A version: 1.5

1 Answer

+3 votes
by

Set 0 in Question title length in URLs and question url will be like this:

Http://domain.com/1234

...