Help - I fucked up - website offline cant access wp-admin

xthefuture

BANNED
Joined
Jul 10, 2020
Messages
197
Reaction score
55
Hi, I changed both my wp adresses from 'general settings2 from https://www.sitecom to https://site.com
now my website is offline and I cant acess wordpress recovery mode. What can I do? Thanks
 
Contact your hosting company and they should be able to recover for you.
If that is a problem or too slow, there is also a way to do it via the file system in your cpanel - google it and it should be easy enough.
Been there too!
 
You may need to reload Wordpress unless you have a backup. Contact your hosting chat, they may be able to fix it. It could be just the theme is broke.
 
login to cpanel or control panel and find this file

wp-config.php

Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );


If not works then contact hosting provider they will resolve it for you
 
yes, I am trying to access phpmyadmin but dont work

Add these two lines to your wp-config.php, where “example.com” is the correct location of your site.

define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
I will try this
thanks everyone for being so responsive
 
before I mess up again: If I want to change just the adress, which one has to go without the www?

define('WP_SITEURL', 'https://www.example.com');
define('WP_HOME', ' https://www.example.com');

siteurl or home? I guess home
 
now my website is offline and I cant acess wordpress recovery mode. What can I do? Thanks
If you still get stuck, better to contact your hosting provider first, they should know more and solve the problem for you.
 
If you still can't fix it, DM me. I have free time, I can help out
Thanks so much this forum is full of great people
Anyway, I recover with ftp. I used that code but I put it in functions and not wp-config. Why?

Here is why, according to Wordpress. If you occurr in the same problem solution is this

Edit wp-config.php https://wordpress.org/support/article/changing-the-site-url/#edit-wp-config-php
define( 'WP_HOME', 'http://example.com' );
define( 'WP_SITEURL', 'http://example.com' );
This is not necessarily the best fix, it’s just hard-coding the values into the site itself. You won’t be able to edit them on the General settings page anymore when using this method.



Edit functions.php https://wordpress.org/support/article/changing-the-site-url/#edit-functions-php
If you have access to the site via https://wordpress.org/support/article/ftp-clients/, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

update_option( 'siteurl', 'http://example.com' );
update_option( 'home', 'http://example.com' );
 
I dont understand, why I cant set my website url without www at general settings of wp
 
The best way to do it is to contact them and explain them what happen that's the easiest way.
 
I think that you need to understand some things. You pay for the hosing services to your provider and asking for the help does not mean you are asking for a favor or something like that.
Just go ahead and ask your provider to help with sorting this.
 
Already had this problem, hoster helped me & within 10 minutes it was back again
Take a try
 
First, you will need to login to PHPMyAdmin panel >> Select the WordPress Database >> Goto wp-option table from there you can correct the site URL and Home URL for your website then it will work fine for you. If still, your website is down then please contact the hosting provider they will fix the issue.
 
if you are hosting on cpanel then log into phpmyadmin and fix the address in the data base and boom you should be back up and running. Not as big of a deal as making out.

Your first stop should have been your web host 9 times out of 10 they could have fixed it and you would have been back up and running in no time. If your host doesnt offer basic support then time to move.
 
Back
Top