Subdomain mapping - wordpress

I have shifted my word press blog on my website as its sub domain, but internal pages are still showing old blog's URL.
how can I resolve this problem ?

Read Moving WordPress, the canonical document on how to move a Wordpress blog in the Codex, especially item 10.
Existing image/media links uploaded media will refer to the old folder and must be updated with the new location. You can do this with the Velvet Blues Update URLs plugin, or with a search and replace tool, or manually in your SQL database, by following the instructions at Tamba2's Tutorial "Moving your weblog inside your PC".

Related

internal fake links shows in google search results

I recently had a strange problem on my site. This is a problem with urls that have not any relation my content (see screenshot with fake links in google search results). Fortunately these links are no external spam links.
So I decided to do the following steps:
I've reviewed my site with a security checker, such as sucuri, unmasking, and all of these sites announced that my site is completely clean.
I deleted the old WordPress files (except wp-config & wp content folder) and replaced them with fresh and clean files.
1.I replaced the entire theme system files (php, js, etc.) with new and fresh files.
2.I changed all the passwords and worpress salts with using itheme security plugin, removed .htaccess file and let wordpress create a new one.
3.I removed the unrelated links using google webmasters.
4.I also removed suspicious plugins and restored the full version of my site's backup two weeks ago.
Unfortunately until today the links are not gone. All urls share the same word "marblehead". Like the following URL:
omranf1.com/conkers/marblehead/15244_17630.asp/page/2/
The interesting thing is that in the description section of search results of each of these URLs, abstract part (or meta tag description) of content of my site is displayed.
Has anyone come up with a solution to this problem? I'm really confused how to get rid of this problem!

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 - How to replace all wp.me shortlinks?

I have a website which is hosted at wordpress.com and I want to transfer this one to an own hosted environment. The current website on wordpress.com includes a ton of links which are shortened with wp.me and have been used to link from a page to another page/post.
I want to change the internal links to "normal" links, because otherwise the links are directing still to the site at wordpress.com. How can I do that? Is there a way to do this (semi-)automatically? Any chance to get a table that shows the permalink and the corresponding shortlink?
Thanks!
you can use this script, I think it's the best for wordpress migrations.
Download
Create a new folder in the server root directory
Upload the files in to that directory
Type the correct url www.yoursite/yourdirectory
Enter the current url in your DB and the new Url
Click in dry run and then live run
Remember to download a copy of the DB.

Some posts pointing to old url after changing domain

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.

how do i move a wordpress blog to a wordpress site with a blog

Client had a flat file php site and wanted a blog, so I installed wordpress stand along blog. Now they want to convert then entire site to Wordpress. The current blog is in a subdirectory called "blog". I would like to create a blog page called "blog" on the new site and import the posts that are in the WP standalone blog installation.
Can I just take the SQL statements and insert them as autoincrements in the new database. How do I import the tags and categories. What about the author number? It will be painstaking, but I don't want to cut and paste a hundred blog posts.
Install WordPress in root http://codex.wordpress.org/Installing_WordPress .
Create a page called Blog with the slug of /blog/. Set that as your posts page in Dashboard>>Settings>>Reading.
Export your posts,categories, authors and images from the current blog via http://codex.wordpress.org/Tools_Export_Screen and then import them http://codex.wordpress.org/Importing_Content into the new WP site. You should be able to keep the same structure to your permalinks.
Then, if needed, create static pages to match the current php pages and cut/paste the content into them.
Why wouldn't you just make the primary site URL point to the blog site? Or take a full backup of the blog site and restore it on the main server in doc root? Then add your pages content right in the current blogging site? You can point both www.whateversite.com/blog/ to the posts (blog page) or even blog.whateversite.com to the same.
Seems like a LOT of extra work to setup a new WordPress install then go to a current WordPress install and export the blog posts then re-import just the blog posts.
If you absolutely have a great reason for not just using the current WordPress install and building on that then I suggest you spend the $15 and get VaultPress from the Automattic group and backup the blog site. Then use the restore to alternate URL feature to clone it to a brand new WordPress installation you've started at the new main site. It will restore the content and replace inline URLs for you which is a HUGE time saver.
I've moved / cloned multiple sites this way. It is by far the easiest method, especially if your in-blog URLs need to change from blog.blah.com to www.blah.com.

Resources