Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
722 views
in Q2A Core by
Hello, I'm using the first option of the URL rewrite structure (/123/why-do-birds-sing) and I have installed Q2A at http://mysite.com/community. When I go to http://mysite.com/community/category-name/sub-category-name, I got a 404 with the default rewrite rules in the htaccess file. All other URLs seem to work fine though.

Any guidance on how to fix this?

My htaccess is as follows :

DirectoryIndex index.php

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteBase /community/
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$

RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /community/index.php?qa-rewrite=$0&%{QUERY_STRING} [L]

</IfModule>
Q2A version: Q2A Version 1.6

Please log in or register to answer this question.

...