In my Wordpress site's settings I changed the URL from http://www.lauraspantry.uk to http://www.allstaruhlmann.co.uk - stupid mistake, double so as I meant to add http://www.allstaruhlmann.com - I can now no longer access my site and get the following error
How can I resolve this and restore the original URL?
Just add this to your wp-config.php (via FTP or SFTP) :
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
Where example.com is your correct url.
Further info:
https://codex.wordpress.org/Changing_The_Site_URL
You'll have to go into your site's database and change siteurl in WP_Options. Usually you would use PHPMyAdmin. Available in your CPanel.
Related
I changed my Wordpress website site URL prematurely and now it tells me Not found The Requested URL was not found on this server. I've been struggling with this and trying to find a fix but everything I've done has not fixed it. I've gone into the config file to update the URL, define the URL, you name it, I've done it. So I'm pretty desperate at this point and any help would be appreciated.
P.s I'm also running the server off of a Digital Ocean droplet. So I haven't been able to access the DB through MyPhpAdmin.
Thank you!
To change the WordPress site URL you need to do it manually as you can’t do it from your WordPress admin panel. There are two ways to do that:
Method 1 - Change WordPress site URL by editing wp-config.php file. This is the easiest way;
Add the following code to the end of wp-config.php file and save the file.
define('WP_SITEURL', 'http://www.example.com');
define('WP_HOME', ' http://www.example.com');
*Change www.example.com with your site domain.
Method 2 -
Please try to change the URL from PHP MY ADMIN > select your database > goto wp_options and change the URL
Using FTP/ SFTP , or your web-host’s cPanel or whatever file management application your host provides, access phpMyAdmin on your host, then find your DB, there check the wp_options Table (Note: The table prefix of wp_ may be different if you changed it when installing), and make sure site URL field and home field are correct.
I found the fix!!
When the site URL changed so did the root directory. The root directory added another folder to the path. So it looked something like this var/www/html.old/html.
Apache was still trying to access the site through var/www/html.
So I adjusted the file path and boom! Apache was able to make the connection and the website is now showing.
To get to the apache folder it was /etc/apache2/site-available/. I was then able to nano into the 000-default.conf file and adjust the file path through there.
Guys, I've a site that was moved from sub.domain.com to domain.com. To do this I used Backupbuddy plugin in Wordpress. The problem is..Everytime any user try to access to some old page url (domain.com/testpage) and the page doesn't exist, are being redirected to sub.domain.com/testpage where the page previously existed.
Any idea how to fix this?
Thank you.
you have to make change in your .htaccess file in your server or host. always redirects are in that file. if you are using cpanel you have to make visible hidden items in settings.
I think the first port of call would be to check the URL in Wordpress matches the database table URL, if so update the Permalinks and retest.
Zip .htaccess to make a backup and remove the .htaccess file. Then, save your permalink again to generate a new .htaccess and check.
this is my first time, I am installing a wodrpress localhost(xampp) to main server.
According to tutorial I Imported database from local machine to main server. Changed the the table prefix and http://localhost/wordpress to https://example.com.
after installing theme domain shows empty theme.
I changed all the http://localhost/wordpress used on theme. But didn't work.
Then according to another tutorial I imported full localhost wordpress file.
Then It redirecting my domain to http://localhost/wp-wordpress. Then I decided to fully reinstall the wordpress and as per I removed file from public html which I uploaded.
Now my domain redirecting to http://localhost/wp-wordpress after removing files I uploaded.Public html folder
my site
After reinstalling wordpress on server admin dashboard working fine but domain redirecting to localhost/wp-wordpress
You can change the url many ways in wordpress. You can use to change the url as you understand and follow the steps as I mentioned in below,
Change WordPress URL in Admin Dashboard
Change WordPress URL in wp-config.php File
Change WordPress URL Directly in Database
Change WordPress URL With WP-CLI
Get More understanding the details, Follow the article - How to Change Your WordPress URL
Thanks!
After checking wp-config.php and site_url,home_url in wp_options table in database. Take a view on .htaccess file too. This file should look like this htaccess code
Please change the site_url from the wp_option table. There are 2 rows containing the website base url in the wp_option table. You need to change both url to the main domain url.
Thank you
I am getting 404 error, after migrated wordpress site from one PC wamp to another PC wamp?
Edit 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');
Update permalink
Step 1 : Goto wp-admin->setting->permalinks
Steps 2 : After save changes
This could be that your WordPress site on your new local environment need some changes, and there are some steps to follow: Moving WordPress
2 obvious changes:
Have you updated your wp_options table?
Have you updated your wp-config.php file with the new database credentials?
Try going to Settings > Permalinks and changing the permalink structure to Plain. If the pages work after that, you can change the permalink structure back to whatever you wish.
I've had it before where just re-saving the same permalink setting doesn't resolve the 404's, but changing it to Plain does.
I'm trying to change my WordPress site's URL (without redirecting) from:
example.com/go/take/
to:
example.com/go/give/
Also, if my wordpress site is located in the /go/ folder, is it possible for me to trim /go/ ?
Thank you.
These are two separate issues.
Regarding the first issue, are you saying that you still want a user
to type in example.com/go/take, but be served the file from
example.com/go/give without changing the url? You can install the
wordpress redirection plugin to do that. You can create a 'pass
through' redirect which will do this.
Here's what you can do to run example.com from a wordpress install
in the go subdirectory:
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory