Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
771 views
in Q2A Core by

 

(contents of my .htaccess file:)
 
DirectoryIndex index.php
RewriteEngine On
#RewriteBase /your-sub-directory
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]

2 Answers

0 votes
by
Only if you've installed q2a in a subdirectory.
0 votes
by

If you have Q2A in a subfolder (for example on this site it's in the /qa/ folder) then you will need to change:

#RewriteBase /your-sub-directory

to this:

RewriteBase /qa

Except put your directory instead of "qa".

Otherwise, no you don't need to change anything.

...