Changing Site Address leads to error-message when publishing. Using htauth-direc
-
Hello,
after changing the “Site Address (URL)” at settings when trying to publish a new post or page an error-message comes:
“Publishing failed. The response is not a valid JSON response.“
Is it because of my .htaccess-file, because of Require User there, because of wordpress, …? What do I have to change?
The domain is situated at the hosting-company in the file-directory:
/mydifferentdomains/example_com
The directory
/mydifferentdomains/example_com/section
is secured by an .htaccess-file per “Require user”.
At settings in my WordPress-Settings page:
WordPress Address (URL)
https://www.example.com/section/wpSite Address (URL)
https://www.example.com/section/wpThere I change the Site Address (URL) to auf https://www.example.com
After the change the .htaccess-file reads:
RewriteEngine On #Options FollowSymLinks ErrorDocument 404 default RewriteCond %{HTTP_HOST} !^www\. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] ErrorDocument 404 default # ErrorDocument 404 /neuanlegen.php?aktion=DateiNichtVorhanden # Next three lines by the hosting company, after I activated the SSL-certificate coming with my contract. RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
But now whenever trying to “Publish” a new post or page the error-message comes up:
“Publishing failed. The response is not a valid JSON response.”
—–
(Once I accomplished this I will switch the setting to use Permalinks..)
- The topic ‘Changing Site Address leads to error-message when publishing. Using htauth-direc’ is closed to new replies.