MyBB Community Forums

Full Version: Google SEO Redirect Debug showing up when UTF-8 letters appear
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This problem started happening since I've moved my site to a different hosting. It shouldn't be happening in my modest opinion.

Whenever I go to a link that has "š đ ć č ž" characters, debug information appears at the top. The link itself is working, just this information keeps popping up.

Any idea what that might be?

Google SEO Redirect Debug Information:
Array
(
    [THIS_SCRIPT] => forumdisplay.php
    [_SERVER] => Array
        (
            [PATH] => /sbin:/usr/sbin:/bin:/usr/bin
            [PWD] => /usr/local/cpanel/cgi-sys
            [SHLVL] => 0
            [FCGI_ROLE] => RESPONDER
            [REDIRECT_UNIQUE_ID] => TkA1pbLvM90AABb0Z@MAAAAO
            [REDIRECT_SEO_SUPPORT] => 1
            [REDIRECT_STATUS] => 200
            [UNIQUE_ID] => TkA1pbLvM90AABb0Z@MAAAAO
            [SEO_SUPPORT] => 1
            [HTTP_HOST] => forum.onlinezarada.info
            [HTTP_X_REAL_IP] => 188.2.234.144
            [HTTP_X_FORWARDED_FOR] => 188.2.234.144
            [HTTP_CONNECTION] => close
            [HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
            [HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
            [HTTP_ACCEPT_LANGUAGE] => en-us,en;q=0.5
            [HTTP_ACCEPT_ENCODING] => gzip, deflate
            [HTTP_ACCEPT_CHARSET] => ISO-8859-1,utf-8;q=0.7,*;q=0.7
            [HTTP_REFERER] => http://forum.onlinezarada.info/index.php
            [HTTP_COOKIE] => 
            [SERVER_SIGNATURE] => <address>Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.6 Server at forum.onlinezarada.info Port 80</address>

            [SERVER_SOFTWARE] => Apache/2.2.19 (Unix) mod_ssl/2.2.19 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_fcgid/2.3.6
            [SERVER_NAME] => forum.onlinezarada.info
            [SERVER_ADDR] => 178.239.51.221
            [SERVER_PORT] => 80
            [REMOTE_ADDR] => 188.2.234.144
            [DOCUMENT_ROOT] => /home/onlineza/public_html/forum
            [SERVER_ADMIN] => [email protected]
            [SCRIPT_FILENAME] => /home/onlineza/public_html/forum/forumdisplay.php
            [REMOTE_PORT] => 57676
            [REDIRECT_QUERY_STRING] => google_seo_forum=vaša-statistika--59&google_seo_redirect=debug
            [REDIRECT_URL] => /Forum-vaša-statistika--59
            [GATEWAY_INTERFACE] => CGI/1.1
            [SERVER_PROTOCOL] => HTTP/1.0
            [REQUEST_METHOD] => GET
            [QUERY_STRING] => google_seo_forum=vaša-statistika--59&google_seo_redirect=debug
            [REQUEST_URI] => /Forum-va%c5%a1a-statistika--59?google_seo_redirect=debug
            [SCRIPT_NAME] => /forumdisplay.php
            [PHP_SELF] => /forumdisplay.php
            [REQUEST_TIME] => 1312830885
            [argv] => Array
                (
                    [0] => google_seo_forum=vaša-statistika--59&google_seo_redirect=debug
                )

            [argc] => 1
        )

    [mybb->input] => Array
        (
            [google_seo_forum] => vaša-statistika--59
            [google_seo_redirect] => debug
            [fid] => 59
        )

    [kill] => Array
        (
            [fid] => 
            [page] => 
            [google_seo_forum] => 
        )

    [target] => http://forum.onlinezarada.info/Forum-va%C5%A1a-statistika--59
    [current] => http://forum.onlinezarada.info/Forum-va%c5%a1a-statistika--59?google_seo_redirect=debug
    [target_parse] => Array
        (
            [0] => http://forum.onlinezarada.info/Forum-va%C5%A1a-statistika--59
        )

    [current_parse] => Array
        (
            [0] => http://forum.onlinezarada.info/Forum-va%c5%a1a-statistika--59
            [1] => google_seo_redirect=debug
        )

    [location_target] => http://forum.onlinezarada.info/Forum-va%C5%A1a-statistika--59
    [location_current] => http://forum.onlinezarada.info/Forum-va%c5%a1a-statistika--59
    [broken_query] => google_seo_redirect=debug
    [change] => 
    [query_target] => Array
        (
        )

    [query_current] => Array
        (
            [google_seo_redirect] => debug
        )

    [query] => Array
        (
            [google_seo_redirect] => debug
        )

)

Example link: http://forum.onlinezarada.info/Forum-va%...istika--59
your forum with utf-8 characters in URLs do not load with firefox AND chrome
browsers as the browsers detect many redirects / redirect loops in the URLs

may be its better to use thread-nnn.html type links for your forum OR use
plain English alphabet & numerals for the forum titles & thread titles ...
I thought that it's better to use links with keywords than with numbers, because of SEO. Anyway, this problem didn't exist before I've changed my hosting provider. That's what I'm addressing to. How to remove this debug info and put it to use, like it was enabled before.
For some reason the urlencode is lowercase'd for you. Do you have the URL lowercase setting enabled? Maybe it's a bug no one noticed before. If not, it's your webserver doing funny things. I see you're running nginx instead of Apache.

It's not the lowercase setting, and I can't reproduce the issue. Probably nginx then. You might just have to disable Redirect.
if you just want to turn off the debug info then you can try at the settings
configuration --> settings --> Google SEO Redirect --> Debug Redirect --> no

may be you can contact your webhost with the comments by frostschutz
[he is the expert of the SEO]
Thank you. I'll disable urls at the moment.
What do you think, can I get it to work on nginx? It worked just fine on Apache, didn't notice this hosting is using nginx Sad
Update your forum mate
Nginx does indeed escape with lower case characters. That sucks big time.

in inc/plugins/google_seo/redirect.php find:

    $page_url .= $_SERVER["REQUEST_URI"];

Add below that:

        $page_url = preg_replace_callback('/(%..)+/',
                                          create_function(
                                              '$matches',
                                              'return strtoupper($matches[0]);'
                                              ), $page_url);

Tell me if it helps.
It helped!

I love you dude Big Grin

You rock! Smile

Update your plugin, since this fixes issue with nginx, obviously.

Once again, thanks A LOT! Smile
I added it as an optional setting for the next version for now. It's not a perfect solution but for now it will have to do.