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?
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.
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
One hint? Oh, you could, you know, rewrite the entire plugin?
Seriously. It's. Not. Possible.
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]
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-android
as http://www.theandroidportal.com/answers/which-is-best-bettery-saver-for-android
but 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.