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

When I use mkdir in question title on my q2a website, question page doesn't shown and q2a shows an error that this page doesn't exists.

Link on my q2a website

But the question page shows when remove title and use only question id in url.

Is this a bug?

Q2A version: 1.6.3
by
strange.. You have the issue also querying the tag containing that word :
http://os.qanet.ir/tag/mkdir
by
On the apache error log no additional infos ?
by
I have installed q2a with external users. Now I can't find apache error log file. Where it could be?
by
I found log file, but there is nothing noticeable

1 Answer

0 votes
by
edited by

I have found the reason of this problem, but I'm not sure completely. variable $_GET['qa-rewrite'] goes wrong with urls consist of some linux commands on my server.

I think that it might be sever security configuration, but I'm not sure because I don't know where qa-rewrite is set. Is it set in apache? or Q2A source code?

Finally I found the problem.

.htaccess consists of these 3 lines of code

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

Then, os.qanet.ir/13/mkdir makes an incorrect $_GET['qa-rewrite'] variable. But now, I don't know how can fix that.

...