Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
1.6k views
in Q2A Core by

Hi,
I'm getting not found error in some of my pages, like:
http://www.hesabdar94.ir/index.php?qa-rewrite=9/%D9%85%D8%A7%D9%84%DB%8C%D8%A7%D8%AA-%D8%B9%D9%85%D9%84%DA%A9%D8%B1%D8%AF-%DA%86%DB%8C%D8%B3%D8%AA%D8%9F

when i remove "index.php?qa-rewrite=" from it link is ok,
here is my .htaccess content:

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]
</IfModule>
<IfModule mod_rewrite.c>
#Force www:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>


i asked here also:
https://github.com/q2a/question2answer/issues/214#issuecomment-93797425
by
As I said on GitHub I think it's an issue with the redirects. Have you tried moving the redirect block above the first block?

2 Answers

0 votes
by
same problem and here... But with a reupload of .httacces file in my server (i don't know, but godaddy deleted it) all is fine ;)
0 votes
by
Same problem here, what's the solution.
...