Title: gs42's Replies | WordPress.org

---

# gs42

  [  ](https://wordpress.org/support/users/gs42/)

 *   [Profile](https://wordpress.org/support/users/gs42/)
 *   [Topics Started](https://wordpress.org/support/users/gs42/topics/)
 *   [Replies Created](https://wordpress.org/support/users/gs42/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/gs42/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/gs42/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/gs42/engagements/)
 *   [Favorites](https://wordpress.org/support/users/gs42/favorites/)

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
   
   In reply to: [Use of “Eh” in Logout Button](https://wordpress.org/support/topic/use-of-eh-in-logout-button/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/use-of-eh-in-logout-button/#post-15313098)
 * Thanks Steve – appreciated!
 * (And glad to know it’s not just me… lol)
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Invalid Reset Link Due to Deceptive Site Ahead Warning?](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/#post-14566970)
 * Ha – I’ve learned to cry and laugh at the same time. I’m certainly no cybersecurity
   expert, but I’ve dealt with my share of hacks over the years. Very stressful!
 * Thanks for the link. I’ll take a look at that!
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Invalid Reset Link Due to Deceptive Site Ahead Warning?](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/#post-14565057)
 * That’s the thing Rob — all the sites that were hacked (there were more than just
   one — that was the worst) have either WordFence or AIOWS plugins. There are indications
   that it was a server attack, not a pure WordPress attack. I’m still trying to
   track that all down.
 * But yes, security is paramount. I just finished changing passwords, etc. I’ll
   be monitoring…!
 * Thanks,
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Invalid Reset Link Due to Deceptive Site Ahead Warning?](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/#post-14565009)
 * Hi Website Rob,
 * We must have been replying at the same time. I tried disabling all the plugins
   exactly as you described (I use an “x” instead of a “1”, but…) and did all the
   Password Reset things. None of those worked.
 * Replacing the DB with a backup solved the problem.
 * Thanks for replying — much appreciated!
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Invalid Reset Link Due to Deceptive Site Ahead Warning?](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years ago](https://wordpress.org/support/topic/invalid-reset-link-due-to-deceptive-site-ahead-warning/#post-14565008)
 * Hi RoseHosting,
 * Thanks for the quick response!
 * I tried that — first time I’ve ever ventured into SSH — but it wouldn’t let me
   enter the password.
 * What I did instead was upload a backup of the DB through PHPMyAdmin — that reset
   the login fine. (The site isn’t updated often, so this wasn’t a problem…)
 * Thanks again for your help — much appreciated!
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Possible PHP/WordPress Conflict with WWW Redirects?](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/#post-13772557)
 * Hi Again Corinna,
 * I went back to one of the sites I was having trouble with, and your advice worked
   well for http to https. However, I still couldn’t get the non-www to www to work
   correctly in PHP 7.4.11. It worked fine in PHP 7.1.33 when I downgraded, but 
   when I upgraded past that, I would get the following error when trying to access
   a non-www URL:
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/servername/public_html/domainname.com/wp-config.php:1) in /home/servername/
   public_html/domainname.com/wp-includes/pluggable.php on line 1296
 * I followed your philosophy and looked for a way to improve the .htaccess file
   code rather than find a plugin. It took some research and some cobbling together
   of various code (including the Dreamshost example you suggested) and came up 
   with this:
 * # Force WWW & SSL
    RewriteEngine on RewriteCond %{HTTPS} !=on RewriteRule ^(.*)
   $ [https://%](https://%){HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] RewriteCond %{
   HTTP_HOST} !^www\.(.*)$ [NC] RewriteRule ^(.*)$ [https://www.domainname.com/$1](https://www.domainname.com/$1)[
   L,R=301] Header always set Content-Security-Policy “upgrade-insecure-requests;”#
   END Force WWW & SSL
 * I’m not sure if it’s pretty, but it works. Now, I can type in any combination
   of http, https, www, and non-www, and it will always redirect to [https://www.domainname.com](https://www.domainname.com)
   without any errors — even in PHP 8.0.0rc1.
 * I put this here in the hopes that it will help someone else stuck on the same
   problem.
 * Thanks again for your help!
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Possible PHP/WordPress Conflict with WWW Redirects?](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/#post-13771885)
 * Okay – thanks Corrina!
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Possible PHP/WordPress Conflict with WWW Redirects?](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/#post-13768150)
 * Thanks for this, Corrina.
 * “Adding to cPanel” – adding it via the “Redirect” module
 * I followed the directions, and it seemed to work. But what was actually happening
   was that the server reverted back to PHP 7.1.33 from 7.4.11
 * So, back to the drawing board.
 * (I also changed the SSL certificate to “Wildcard” but taht didn’t change anything.)
 * ~Graham
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Possible PHP/WordPress Conflict with WWW Redirects?](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/)
 *  Thread Starter [gs42](https://wordpress.org/support/users/gs42/)
 * (@gs42)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/possible-php-wordpress-conflict-with-www-redirects/#post-13768137)
 * EDIT
    -  This reply was modified 5 years, 6 months ago by [gs42](https://wordpress.org/support/users/gs42/).

Viewing 9 replies - 1 through 9 (of 9 total)