Some posts pointing to old url after changing domain - wordpress

I changed my domain name for my website and I double checked with the migration document on Wordpress, everything is as it should be.
Problem:
When permalinks is set to default:
all pages work, expect for a button on homepage which sends me back to the homepage but updates URL.
For Example: Im on example.com and i press search button>> URL changes to example.com/search but im on the same homepage. I press it again, URL becomes example.com/search/search. Interesting and Frustrating.
When permalinks are set to other settings like day, month:
Some pages redirect to old domain. Example: if i click on search on my website , it will take me to oldexample.com/search. when i manually update URL to example.com/search, I can see the page. BTW, oldexample/search gives me nothing.
**New Problem:**Recently, I activated all in one seo and sitemaps dont work with default permalinks.
Example: example.com/sitemap.xml gives me my homepage instead of the sitemap page. When i change the permalinks to other settings, I can see my sitemap.
I mean, what is this??
PS: Its a multisite installation with ONLY 1 SITE. and I had W3 cache, deleted it. problem exists.
PSS: when i submit my sitemap.xml to google with default permalinks, it says its HTML. so i changed permalink to date month and submitted; Successfully.

Using the "search and replace" script, I updated my links. Uploaded the script to the folder containing wp-admin, wp-include and the likes. Followed the instructions and clicked on dry run.
I found that my wp-postmeta contained some old urls. Updated just that 1 table and that did the trick.

Use a Search and Replace DB script if you are transferring a wordpress site (along with the database) to another domain.
The DB contains links from old domain, so you need to replace the old ones with the new ones. Just be careful and make a DB backup just in case.
This script is a great tool if you are creating a WPMU sites. Just copy the site and to a subdirectory (/en, /de, whatever your name domain is), import the old DB to the new one, and run this script before you've entered the site.
It is crucial not to enter the new site before running the script so that all the old links will be picked up correctly by it. After you've replaced it, you're good to go.

Related

Wordpress and temporary access url

I hope everybody is well.
I have to set up a new Wordpress site, but this is the first time I need to setup the website "before" the domain name is registered.
I have webspace on shared webhosting and I can setup the Wordpress site using a temporary subdomain for my shared hosting, but this will mean setting up the Wordpress site using the temporary access url instead of the proper domain name that will be done next week.
If I setup the Wordpress site using the temporary url, once the domain name is registered, is simply changing the website address in the Wordpress General settings adequate or will I need to update the database too?
Is there a plugin that will do the above?
Thanks in advance if anyone can assist.
AH
You can proceed and start setting up your WordPress site to start designing, ones you've completed and domain name is registered like you've said, you can:
Backup your File Manager files to a local storage Highlight the content, right click, and click compress then download.
Navigate to the root folder of the now newly registered domain(public_html), and upload the files you downloaded above.
Go to the wp-config.php file, highlight and select edit.
Just before a line with this words /* That’s all, stop editing! Happy blogging. */
Add the lines below then save and close.
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');
example.com is the new domain.
Now go back to your WordPress site to update the links. Yes, their is a plugin to update links, a lot of them but search for 'Velvet Blues Update URLs' using the plugins-> Add new.
After installing and activating the plugin,go to Tools -> Update urls, enter your old (subdomain) and new (root domain) URLs and in Step 2, check all options except Update All GUIDs.
Click the Update URLs Now button to proceed.
Check out under FaQs of your hosting provider if they've indicated a method on how users can move sites from subdomain to main domain.

Moved wordpress directs to old URL

I just moved my wordpress site to a new sub domain. However the homepage still directs to the old url: wordpress.bysuonpera.com.
It should direct to photographer.bysuonpera.com
Anyone know where I can change this?
I already change the URL's in the wordpress settings menu. But this did not change the issue. Also, accessing wordpress through cpanel also directs to the old url.
Hope someone has an answer.
Moving Wordpress is pretty straightforward. However there are some things that could be messed up, if you dont follow the guide. Ideally, you should change the URL setting in dashboard before transfer. However you can do it later on too, use this section of the above manual.
As soon as you manage to login to dashboard on a new WP instance, download, activate and use two following plugins to replace old URL with new URL on your WP instance:
Velvet Blues Update URLs
Better Search Replace

wordpress migration broken links

I am experiencing a problem with the wordpress migration.
I held my website on localhost beofre (xampp server in computer). It all worked fine so I decided to move it to a real domain. The website is http://www.cupavortex.ga .
I exported the database from phpMyAdmin in xampp, and imported it in the new database in the wordpress site. wp-config.php is already configured
The only thing working is the homepage and the buttons.
The images are not appearing.
And when I try to click on any link it redirects me to the old addresses (for example, when I try to click on “Desfasurare”, it redirects me to localhost/CupaVortex/desfasurare because that was the old link. I can’t acces wp-admin nor any administrative tools but phpMyAdmin and FileZilla.
Also, the site is hosted at 000webhost.com, and yes, I modified the mysql name to mysql4.000webhost.com from localhost, and replaced utf8mb4 with utf8 in order for everything to work. I just want to find out how to replace the links, I don’t really care about the images.. Theme used is Astrid.
Thanks in advance
Have you updated your database 'home' and 'site' url entries? This is done in wp_options, both need to be the new base url! After that, if thats the issue, you'll probably want to refresh your permalinks in the wp-admin settings section.
Go Back to your old local host website for a sec.
Steps:
Go to Settings->Permalinks and set it to numeric values.
Check if you have not used a custom link inside the website for any images or post or anything. If you do then change it to the new numeric values from it.
Now just export the sql datasheet and website back up from old host to new host.
Make sure you update ALL absolute links to posts, images, files etc.. by running the following plugin: "Velvet Blues Update url's"
What this will accomplish is (according to own personal experience and taken from plugin developer's page is)
FEATURES:
Users can choose to update links embedded in content, excerpts, or custom fields
Users can choose whether to update links for attachments
View how many items were updated
Last edited by Dimitar Coklev on Feb 18, 2018

Have you ever encountered Wordpress settings that wouldn't stick?

I'm in the middle of moving Wordpress from localhost on my local machine to the live web. I modified the wp_options table's siteurl and home values to point to blog.site.com/. It worked the first time I entered this url, but subsequent url entries would not display the blog page.
Is anyone familiar with this problem?
It's not really straight forward to change the URL of a wordpress site after the initial install because the database contains references to the initial url.
Have you tried following the steps outlined in these pages?
http://codex.wordpress.org/Moving_WordPress#When_Your_Domain_Name_or_URLs_Change
http://codex.wordpress.org/Changing_The_Site_URL
You can use this script to update the DB referees from the old url.
https://interconnectit.com/products/search-and-replace-for-wordpress-databases/
Once you change the url in the wp_options table and upload the new database, make sure the first thing you do is go into the live site and set your permalinks. Even if you just go in and click save. This should update the url accordingly. However, any links in the content areas, widgets, etc. will still need to be updated manually with the new domain.
There are also some tools to help with this type of migration. Haven't tried it yet, but have heard good things about WP DB Migrate Pro

Tried to Move Wordpress from Subdirectory to Domain, Site Broke

I tried to move my beta Wordpress site to my live domain, and now everything's broken. I have no idea how to fix this. Here's what I did:
I had a site running at mydomain.com, but I wanted to rebuild it. So I downloaded a new installation of WordPress at mydomain.com/test and built a new theme.
I finished the new theme and was ready to move it to mydomain.com. I decided to leave everything in the subdomain for the move, so I followed these instructions.
It worked fine. Mydomain.com was displaying the new site.
Then, I stupidly decided that I wanted to rename the subdirectory from /test to /v2 (because I wanted a cleaner name and I wanted to leave /test open for testing rather than use it for my new site).
Everything broke.
I tried to change the subdirectory back to /test because the site was working with that, but everything is still broken. The theme doesn't seem to be loading. My site is not displaying any styles. My photos aren't displaying correctly. My plugins are gone.
Is there any way to fix this? Please tell me I didn't just lose 3 months of work...
This is my site.
The database,will have the url set to mydomain.com/test
you will need to update the db entries see below script
http://dan.doezema.com/2010/04/wordpress-domain-change/
Sounds like you need to update your siteurl and home values in your Wordpress Database. Log in to your cPanel and go to phpMyAdmin. From there you should be able to open your WordPress MySQL Database.
Go to your wp-options table and make sure that your siteurl (option_id 1) and home (option_id 37) values are using the correct path ie http://mcography.com/test
You may also need to update your permalinks. Even though you don't have to change any options, saving the permalinks again should refresh your .htaccess file.

Resources