Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
755 views
in Q2A Core by
What should I change so that all the pages of the website finish with (.html)

Thank you in advance

Nick

1 Answer

0 votes
by
It's easy to do this for question pages. Modify the function qa_q_request() in qa-base.php to change the last line from:

return (int)$questionid.'/'.implode('-', $words);

... to ...

return (int)$questionid.'/'.implode('-', $words).'.html';

Doing it for other pages is a lot harder but probably less important if you're concerned about this for SEO reasons (not that I think you should be!)
by
edited by
Thank you :) but i dont change nothing in htaccess ?

And

How to remove the number directory in url... (1471)

http://www.question2answer.org/qa/1471/what-should-i-change-for-all-webpage-finish-with-html#1473

Nick
by
I am afraid this is not possible, see the answer to this question:

http://www.question2answer.org/qa/468/how-to-remove-question-no-from-the-question
...