Posts Not Updating After Fording Trailing Slash On All URLs

[ad_1]

Here’s my HTACCESS file:

\# HTTPS Non WWW Redirect Add Trailing Slash

RewriteEngine On

RewriteCond %{HTTPS} off

RewriteRule \^(.\*)$ https://%{HTTP\_HOST}%{REQUEST\_URI} \[L,R=301\]

Header always set Content-Security-Policy “upgrade-insecure-requests;”

RewriteCond %{HTTP\_HOST} \^www\\.(.\*)$ \[NC\]

RewriteRule \^(.\*)$ https://%1/$1 \[R=301,L\]

RewriteCond %{REQUEST\_FILENAME} !-f

RewriteCond %{REQUEST\_URI} !(.\*)/$

RewriteRule \^(.\*)$ [http://maxdalton.how/$1/]) \[L,R=301\]

\# End HTTPS Non WWW Redirect Add Trailing Slash

​

The last three lines add a trailing slash to all URLs. I thought everything was working, but I went to create a post tonight, and I noticed whenever I save a draft it spins and says it saved the draft like normal, but it removes all of my changes and goes back to the original. If I take those three lines out that force the trailing slash, everything works fine.

I feel like I got tackled on the 1-yard line, lol. Any help appreciated.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer