• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Code ?_debug=1 in the url

#1
Hello,

from Google Webmaster Tool I noted many errors with a strange code that I see at the end of my urls. For example, a normal thread of my forum, like this:

Code:
http://forum.tech-magazine.it/threads/configurare-una-sitemap-per-joomla-1-5-con-xmap.56949/
Is reported from GWT as an error, with this url:

Code:
http://forum.tech-magazine.it/threads/configurare-una-sitemap-per-joomla-1-5-con-xmap.56949/?_debug=1
I am talking of about 100 - 150 errors; I have also other url, where the code is repeated, like this:

Code:
http://forum.tech-magazine.it/threads/hai-solo-mezzora-di-tempo-prima-di-un-viaggio-come-la-usi.60363/?_debug=1&_debug=1
Now:

1) Do you know the cause of this problem? Addons, bug, other?

2) Can you suggest a rewrite url (for Nginx) to redirect all this strange url to original url?

Thank you
 
#3
Hello Brogan,

I checked in config.php file but I haven't debug mode enabled; I am using the addons "Enable Debug Mode"

Code:
http://xenforo.com/community/resources/enable-debug-mode-from-admincp.1356/
So, is that the cause of problem?

Regard the rewrite rule to fix the error of GTW, can you help me set it?

Thanks again
 

Chris D

XenForo developer
Staff member
#4
Regardless of whether debug mode is enabled via an add-on or via the config file, you should not be running your live board with debug mode enabled.