Readers like you help support MUO. When you make a purchase using links on our site, we may earn an affiliate commission. Read More.

I am using Question2Answer script on my subfolder of my Android blog. I have modified my htaccess file but it shows numbers in the URL. I want to make the URL without numbers, how can I do it in question2answer script?

Original URL : http://www.theandroidportal.com/answers/3/which-is-best-android-phone

It should be like : http://www.theandroidportal.com/answers/which-is-best-android-phone

Whenever new question published it adds new number on starting and than add its question.

MAKEUSEOF VIDEO OF THE DAY
SCROLL TO CONTINUE WITH CONTENT

Please guide me?

MakeUseOf TechGuy
2013-07-17 07:59:46
If I remember right - around the time we were considering using that script for this site - they can't be removed. It;s an integral part of the system probably harking back to when it was faster for Wordpress to locate pages with a number at the start due to inefficient rewrites. That isn't true anymore - the rewrites are optimized - but sounds like this Answers script won't be changing.
MakeUseOf TechGuy
2013-07-18 09:17:13
One hint? Oh, you could, you know, rewrite the entire plugin?Seriously. It's. Not. Possible.
Bruce E
2013-07-16 02:03:00
Check the Apache documentation on how to apply mod_rewrite rules for your server configuration.I believe it should end up looking something like this:RewriteEngine OnRewriteBase /RewriteRule ^answers/d+/(.*)$ http://www.theandroidportal.com/answers/$1 [R=301,L]
Bhavesh S
2013-07-17 15:16:42
Hi Bruce,I have tried this but it seems it not working. I don't know what is the exact problem.I tried to open http://theandroidportal.com/answers/2/which-is-best-bettery-saver-for-androidas http://www.theandroidportal.com/answers/which-is-best-bettery-saver-for-androidbut it says "A Question2Answer database query failed when generating this page.A full description of the failure is available in the web server's error log file."Thanks in advance.