How do I remove these numbers from my blog’s post permalinks?

Bhavesh S July 16, 2013
Pinterest Stumbleupon Whatsapp

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.

Please guide me?

Ads by Google

  1. MakeUseOf TechGuy
    July 17, 2013 at 7:59 am

    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.

    • Bhavesh S
      July 17, 2013 at 3:19 pm

      Dear Techguy,
      thank you for your kind help, but there should be a way that I can not find.

      I just need one hint only, I will find entire way for this. :D

    • MakeUseOf TechGuy
      July 18, 2013 at 9:17 am

      One hint? Oh, you could, you know, rewrite the entire plugin?

      Seriously. It's. Not. Possible.

  2. Bruce E
    July 16, 2013 at 2:03 am

    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 On
    RewriteBase /
    RewriteRule ^answers/d+/(.*)$ http://www.theandroidportal.com/answers/$1 [R=301,L]