Website URL
osamaidm.rf.gd
Error Message
Publishing failed. You are probably offline. and 404 errors if trying to access pages url
Other Information
Unable to create/edit pages or access existing ones. /visual, /rebranding etc
osamaidm.rf.gd
Publishing failed. You are probably offline. and 404 errors if trying to access pages url
Unable to create/edit pages or access existing ones. /visual, /rebranding etc
This is the result of the following:
Specifically, this:
Some plugins and themes will try to connect back to your website like a visitor, often to scan the content of your website to check for things like configuration issues.
This does not work on InfinityFree. Websites on InfinityFree use a security system that blocks automated access to websites hosted here. This also affects WordPress trying to access it’s own website. Connections like that may result in a 403 Forbidden response, or receiving the HTML code for the security challenge.
Because of this:
I found that the Block Editor will still function without this REST API. There isn’t any issues when it comes down to this, so it should usually be ignored.
It was working fine… anyway to fix it? also my htaccess file keep deleting itself I wanted to force https plus get rid of ?i=1 the end of a url so I basically used this code below. from this link Clean URL with .htaccess
Blockquote
# Turn on Rewrite Engine
RewriteEngine On
# Deny URLs Not Composed of “a-zA-Z0-9.+/-?=&” characters
RewriteCond %{REQUEST_URI} !^/(wp-login.php|wp-admin/|wp-content/plugins/|wp-includes/).* [NC]
RewriteCond %{THE_REQUEST} !^[A-Z]{3,9}\ [a-zA-Z0-9\.\+_/\-\?\=\&]+\ HTTP/ [NC]
RewriteRule .? - [F,NS,L]
# Force / Suffix
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)([^/])$ https://%{HTTP_HOST}/$1$2/ [L,R=301]
# Remove ?i=1
RewriteCond %{QUERY_STRING} ^(.*)i=[^&]+(.*)$ [NC]
RewriteRule ^(.*)$ /$1?%1%2 [R=301,L]
# Forward Documents to .html Internally
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*?)/?$ $1.html [L]
# Forward Documents to .php Internally
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
# Force https:// Prefix
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
</IfModule>
# Remove www. Prefix
RewriteCond %{HTTP_HOST} ^www\.
RewriteCond %{HTTPS}s ^on(s)|off
RewriteCond http%1://%{HTTP_HOST} ^(https?://)(www\.)?(.+)$
RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]
# Remove .html Suffix
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC]
RewriteRule ^ %1/ [R=301,L]
# Remove .php Suffix
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1/ [R=301,L]
The person who made the code didn’t test to see if it worked on WordPress.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.