varela
February 4, 2023, 10:56pm
1
My website loads the majority of things right (i get 4 errors), but when I try to access https://varelasnkrs.infinityfreeapp.com/wp-admin I get the 403 Forbidden error. I don’t know what to do anymore…
KangJL
February 5, 2023, 3:32am
2
I see this
Most likely you need to do this
WordPress frequently releases updates, which you can install through WordPress’ admin interface. Usually, this works without a hitch. But with some (big) upgrades, the upgrade fails half way and leaves you with a broken website.
Fortunately, you can still fix your website without any data loss, and this article tells you how to do that.
Download a fresh copy of WordPress
First of all, you will need to download a fresh copy of WordPress. You can download this from the official WordPress website…
Take note of this as well
Do you often see this on your WordPress website?
[image]
If so you may need to change some of the installation settings.
Installing WordPress
For
Fresh Installation
Make sure you are using the following settings when using Softaculous Install
[image]
Existing Installation
You can access your existing installation via
[image]
Followed by
[image]
Make sure these are the settings used
[image]
On the WordPress config
To play safe, add this line to the wp-config.php
[image]
…
4 Likes
varela
February 5, 2023, 10:37am
3
Thanks for the reply, I followed everything but it still does the same thing…
Oxy
February 5, 2023, 10:46am
4
it looks like something extra has been added to the address so it “doubled”
I don’t know the cause, but try this address, which seems to work better
https://varelasnkrs.infinityfreeapp.com/wp-login.php
but what will happen next - when you enter - who knows (maybe another redirect)
4 Likes
varela
February 5, 2023, 11:13am
5
When I login using that URL, browser says that the form is not secure and I click continue anyway, but then I get redirected to the 403 page again…
Admin
February 5, 2023, 11:33am
6
I checked your site and I think I see the issue.
In your wp-config.php, you have added the following settings:
define('WP_HOME','varelasnkrs.infinityfreeapp.com');
define('WP_SITEURL','varelasnkrs.infinityfreeapp.com');
The settings take a URL value, not a domain name. So most likely WordPress is misinterpreting these values.
That makes sense, given that the parse_url
function in PHP interprets a domain name as a path value. So using this configuration tells WordPress that the Site URL parameter is https://varelasnkrs.infinityfreeapp.com/varelasnkrs.infinityfreeapp.com/
, which matches what we see in the redirects.
To fix this, simply delete these configuration values. Your site URL and such are already configured correctly through the database, so no need to specify them in config as well.
5 Likes
varela
February 5, 2023, 11:45am
8
Now I want to completly change my domain name to https://varelasnkrs.pt . What do I have to do for this to work correctly?
Admin
February 5, 2023, 11:54am
9
Just follow the official instructions?
On the Settings -> General screen in a single site installation of WordPress, there are two fields named “WordPress Address (URL)” and “Site Address (URL)”. They are important settings, since they control where WordPress is located. These settings...
Besides that, you can just add your .pt domain as a Parked Domain to your existing subdomain, and update the site URL in the settings.
4 Likes
varela
February 5, 2023, 1:01pm
11
I don’t know what I did, it was working perfectly with the new domain and now I can’t even ping the server…
Server pings are blocked here
5 Likes
system
Closed
February 12, 2023, 2:03pm
13
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.