Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+9 votes
in Q2A Core by
What to put in .htaccess to make URLs look like /123/why-do-birds
Q2A version: What to put in .htaccess to make URLs look like /123/why-do-birds

2 Answers

+1 vote

You just have to upload an empty  .htaccess  file to your server. 
Once uploaded, go back to Q2A Admin panel, change the URL structure for that option and save it.

The successful operation of  .htaccess  depends on the setup of your server and site. If you are being told that neat URLs are not available in the administration center, you should review the solutions in the link below.

Read more: Why is my .htaccess file not OK?

0 votes

This work for me:

# In order for the web server to process this file it must be renamed to ".htaccess"

Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    #RewriteBase /

    RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
    RewriteRule . %1/%2 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]