<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Question2Answer Q&amp;A - Recent questions tagged mod-rewrite</title>
<link>https://www.question2answer.org/qa/tag/mod-rewrite</link>
<description>Powered by Question2Answer</description>
<item>
<title>Apache URL rewrite for sub-category browsing</title>
<link>https://www.question2answer.org/qa/25427/apache-url-rewrite-for-sub-category-browsing</link>
<description>Hello, I'm using the first option of the URL rewrite structure (/123/why-do-birds-sing) and I have installed Q2A at &lt;a href=&quot;http://mysite.com/community&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/community&lt;/a&gt;. When I go to &lt;a href=&quot;http://mysite.com/community/category-name/sub-category-name,&quot; rel=&quot;nofollow&quot;&gt;http://mysite.com/community/category-name/sub-category-name,&lt;/a&gt; I got a 404 with the default rewrite rules in the htaccess file. All other URLs seem to work fine though.&lt;br /&gt;
&lt;br /&gt;
Any guidance on how to fix this?&lt;br /&gt;
&lt;br /&gt;
My htaccess is as follows :&lt;br /&gt;
&lt;br /&gt;
DirectoryIndex index.php&lt;br /&gt;
&lt;br /&gt;
&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
&lt;br /&gt;
RewriteBase /community/&lt;br /&gt;
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ &lt;br /&gt;
&lt;br /&gt;
RewriteRule . %1/%2 [R=301,L]&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteRule ^.*$ /community/index.php?qa-rewrite=$0&amp;amp;%{QUERY_STRING} [L]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/IfModule&amp;gt;</description>
<category>Q2A Core</category>
<guid isPermaLink="true">https://www.question2answer.org/qa/25427/apache-url-rewrite-for-sub-category-browsing</guid>
<pubDate>Wed, 10 Jul 2013 14:55:11 +0000</pubDate>
</item>
</channel>
</rss>