I tried adding this to my server config file. to redirect non-www to www and it crashed my site… It says too many redirects. How do I fix this
cd /var/www/domain.com/htdocs wp option set home http://www.domain.com wp option set siteurl http://www.domain.com
"WordPress Address (URL)" & "Site Address (URL)" in WP Multi-site
I got alot of fatal errors…
PHP Warning: include_once(/var/www/example.com/htdocs/wp-admin/includes/file.php): failed to open stream: No such file or directory in /var/www/example.com/htdocs/wp-content/plugins/searchwp/includes/class.debug.php on line 10
Well, I don’t know what to do. Let’s stand by someone else to make a suggestion.
I don’t think these errors are related to the line you added, but just to be sure comment it out and then see if errors will stop. if not try to disable all plugins and if errors are gone you will know that one of your plugins is causing the issues. Start enabling them one by one till you get the error again this way to identify the problem plugin.
But it looks like ‘searchwp’ pluign is causing the issue, try first to disable it.
Of course there will be a redirect loop.