Is it possible to deactivate debug_* outputs on live sites?
Even on silverstripe.org you can take a look behind:
http://www.silverstripe.org/?debug_profile
http://www.silverstripe.org/?debug_memory=1
drx
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Is it possible to deactivate debug_* outputs on live sites?
Even on silverstripe.org you can take a look behind:
http://www.silverstripe.org/?debug_profile
http://www.silverstripe.org/?debug_memory=1
drx
Hi drx,
Here is a quick solution to do what you want using a rewrite rule within the .htacess;
RewriteCond %{QUERY_STRING} ^debug(.*)
RewriteRule (.*) http://example.com/silverstripe/404? [R=301,L]
Chuck these two lines in after the RewriteBase and any requests with a query string of debug will get redirected to example.com/silverstripe/404.
Hope that helps.
Cheers
Owen
hi owen - nice *workaround*.
that helps.
drx
Btw, in 2.4 both features will be dev site only.