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

Hello,

Firstly, thank you Scott for the script. My problem can be written in history. I can try change URL.

Current:

http://123.com/14/how-to-change-sef-url

to

http://123.com/how-to-change-sef-url-14

14 is a example. Any number instead of 14.

Sorry for my bad English.

1 Answer

+2 votes
by
selected by
 
Best answer
This isn't worth doing as there is no benefit, the current URLs are already search engine friendly.

However if you really want to, there are 2 main steps:

1. Override the qa_q_request function. The last line returns the actual URL, you'll need to change that to move the number to the end. Override docs here: http://docs.question2answer.org/plugins/overrides/

2. Add some lines to the beginning of your htaccess file that rewrite your new links to the old format.
...