Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
994 views
in Q2A Core by
Hi, I've found, that q2a request routing engine uses lowercased URL in internal matching procedure. It makes different URL to serve the same content, like http://www.question2answer.org/qa/questions and question2answer.org/qa/qUestiOns all shows exactly the same data.

That feature may hurt site's SEO greatly, if one will create an anchor with second URL and that URL will be indexed by Google. Question pages looks unaffected because they have correct rel=canonical attribute, but there are a lot of other pages that are affected.

rel=canonical, however, is not the best possible solution, 301-redirect on access to incorrect-cased URL is a way better.

 

BTW, please, refactor function qa_redirect_raw($url) to use redirect code. Something like this would be nice and absolutely backwards-compatible:

function qa_redirect_raw($url, $code=302)
    {
        if (qa_to_override(__FUNCTION__)) { $args=func_get_args(); return qa_call_override(__FUNCTION__, $args); }

        header('Location: '.$url, true, $code);
        qa_exit('redirect');
    }
Q2A version: 1.5.4
by
Hello? Are there any Q2A developers here? Does anybody interested in bug reports?

Please log in or register to answer this question.

...