How to I serve the static HTML file at the root directory in a wordpress site?

I needed the same thing – a ‘landing’ page at the root site that was custom-built (via PHP), but then WordPress-based pages elsewhere. I did it with the htaccess file for the site: # For example.com root, set landing.php as the default page RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$ [NC] RewriteRule ^$ /landing.php [L] This will redirect www.example.com … Read more

How can I make /wp-admin the root url?

You can potentially use redirects to achieve this, it may not be the most ideal or stable solution, and could cause problems with your site. This is why you’re seeing a “too many redirects” error. Every time WordPress loads, it checks if the requested URL is supposed to be the admin URL. If not, it … Read more

How do I modify each instance of setcookie?

I installed the SameSite plug-in which mimics the default PHP setcookie behavior and adds the additional parameter (samesite) to the cookie. I set the plug-in configuration in wp-config.php with: define( ‘WP_SAMESITE_COOKIE’, ‘None’ ); By setting the configuration of samesite=None, browsers will not enforce SameSite rules that are used to prevent CSRF. From the Mozilla blog: … Read more

The connection to “domain” is not secure

I use this for my htaccess force-SSL rule on my multisites (actually, on all sites). RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Not sure, but bet that off is better than !=on .A resource you can use to test htaccess rules is https://htaccess.madewithlove.com/ .

Redirect loops in Bing holding my sites back

RESOLVED: Even though I had resolved those issues, it wasn’t giving me an updated report. All of the data it was displaying was the old, though it still won’t refresh or update to the current. I’ve confirmed through two separate sources and they both say it’s okay.