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

After creating a toplevel catagory with sub-categories, I noticed double slashes in the recent activity list when clicking a category (not necessarily a top level ยป sub)

I get URLs like:

www.domain.com//politics

But, this only happens on the frontpage (recent activity page).

So I thought I fix this by putting some code in htaccess... but this does not work either!

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On

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

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

</IfModule>

Does someone know why this not works? sad

Q2A version: 1.5.1
by
My Q2A site shows "//" in homepage only and in firefox, but chrome shows no double slashes.

Please log in or register to answer this question.

...