Changing a blog url from subdomain to subfolder
-
I am abou to change my company blog from a subdomain (blog.mydomain.com) to a subfolder (mydomain.com/blog), from suggestions from this awesome community!
Not only that though, because the current blog is on another server than the main site I have to move my blog between servers as well.
This will be a big hassle for me, and means a big risk for errors as I don't have a clue what I am doing on the development part. Hint: I'm no developer.
My blog is fairly new, having posted 18 blog posts so far. There is no major linking to or from the blog as it has been basically no activity on the blog.
It has been fairly good optimized for SEO, with custom plugin settings for Wordpress SEO plugin and similar. Also followed advice from Rand regarding wordpress SEO.
So I guess my question is:
Would it be a big loss for me to just start over with a new blog on the subfolder domain? And move content over from the old blog manually (and then deleting the old one).
Or would It be plain stupid taking that route?
Thankfull for all help I can get!
-
Ha! Not a problem; I've been held responsible for worse.
Good luck. Like I say, moving from a subdomain to a subfolder for us went like a breeze although admittedly it wasn't across two servers. If you have any issues give us a shout
-
Cool! Thanks Chris, I am following the guide you linked. Looks like I will be able to manage the move.
I will have you personally responsible if things get messed up
-
If you are not technically inclined and have nobody that could handle the WP move for you, then your route makes sense since you are only 18 posts in.
As for moving WP, there are actually only 2 parts to it. The website files (aka your root directory) and the database. Once those have been moved, everything else (plugins, settings, etc.) will fall into place.
After that, the only thing left are the redirects from blog.mydomain.com to mydomain.com, which is accomplished with a rule in .htaccess file.
-
There are quite a few easy to follow guides on how to move a Wordpress installation online; one such example is http://blog.triphp.com/how-to/how-to-move-wordpress-to-a-new-server-or-host.html
Once done then just 301 redirect all old pages from the subdomain to the new subfolder.
We recently moved a Wordpress installation from a subdomain to a subfolder (albeit it was on the same server) and it went without a hitch - typically speaking, Wordpress is a simple beast to move.
-
Yes, exactly. Moving it, including everything from plugins to blog posts - and without a lot of errors such as links to the old domain.
Would you suggest I find out how to do it rather than taking the route I described in the question? Do you have any guide that you suggest I follow?
Thanks
-
It's fairly easy to move WordPress from one server to another. Is that your main concern?
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Question on Pagination - /blog/ vs /blog/?page=1
Question on Pagination Because we could have /blog/ or /blog/?page=1 as page one would this be the correct way to markup the difference between these two URL? The first page of a sequence could start with either one of these URLs. Clarity around what to do on this first page would be helpful. Example… Would this be the correct way to do this as these two URLs would have the exact content? Internal links would likely link to /blog/ so signal could be muddy. URL: https://www.somedomain.com/blog/
Technical SEO | | jorgensoncompanies
<link rel="canonical" href="https://www.somedomain.com/blog/?page=1"> URL: https://www.somedomain.com/blog/?page=1
<link rel="canonical" href="https://www.somedomain.com/blog/?page=1"> Google is now saying to just use the canonical to the correct paginated URL with page number. You can read that here:
https://developers.google.com/search/docs/advanced/ecommerce/pagination-and-incremental-page-loading But they do not clarify what to do on /blog/?page=1 vs /blog/ as they are the exact same thing. Thanks for your help.0 -
URL 301 Re-direct
Hello, If we publish a blog post with a url which accidentally contains a number at the end (blog.companyname.com/subject-title-0), is it best-practice to update the URL (e.g. to blog.companyname.com/subject-title) and put in a 301 re-direct from the old to the new one or should it simply be left as is? I've read that 301's lose link equity and relevance so is it really worth re-directing for the sake of a cleaner url? Thanks for your input! John
Technical SEO | | SEOCT1 -
How to redirect my .com/blog to my server folder /blog ?
Hello SEO Moz ! Always hard to post something serious for the 04.01 but anyway let's try ! I'm releasing Joomla websites website.com, website.com/fr, website.com/es and so on. Usually i have the following folders on my server [ROOT]/com [ROOT]/com/fr [ROOT]/com/es However I would like to get the following now (for back up and security purpose). [ROOT]/com [ROOT]/es [ROOT]/fr So now what can I do (I gues .htaccess) to open the folder [ROOT]/es when people clic on website.com/es ? It sounds stupid but I really don't know. I found this on internet but did not answer my needs. .htaccess RewriteEngine On
Technical SEO | | AymanH
RewriteCond %{REQUEST_URI} !(^/fr/.) [NC]
RewriteRule ^(.)$ /sites/fr/$1 [L,R=301] Tks a lot ! Florian0 -
Canonical URL
I previously set the canonical Url in google web masters to the non www version, when I check my on page opt, it tells me that I have a critical issue with this. Should I change it in google web masters back to the www version? if so is there the possibility of negative results? Or is there a better way to deal with this? Note, I have inbound links pointing to both types.
Technical SEO | | bronxpad0 -
Special characters in URL
Hi There, We're in the process of changing our URL structure to be more SEO friendly. Right now I'm struggling to find a good way to handle slashes that are part of a targeted keyword. For example, if I have a product page and my product title is "1/2 ct Diamond Earrings in 14K Gold" which of the following URLs is the right way to go if I'm targeting the product title as the search keyword? example.com/jewelry/1-2-ct-diamond-earrings-in-14k-gold example.com/jewelry/12-ct-diamond-earrings-in-14k-gold example.com/jewelry/1_2-ct-diamond-earrings-in-14k-gold example.com/jewelry/1%2F2-ct-diamond-earrings-in-14k-gold Thanks!
Technical SEO | | Richline_Digital0 -
Change name of directory
How can I best change the name of a directory on my website (example: http://www.website.com/nameofdirectory/)? The directory has lots of content included in it which has links from all over my website. I guess I have to adjust those links? How do I easily collect all of the links? Which is the code I should use in my htacces? Thank you! With kind regards,
Technical SEO | | wellnesswooz
Dieter0 -
Lost FaceBook Shares with URL change
I recently changed the URL of a page and used a 301 redirect from old to new. I just realized I lost all my Facebook shares. Now it shows 0 on that page. What can I do to get back my count of shares? I cannot find any information.
Technical SEO | | MiamiWebCompany0 -
How to move my blog from subdomain to subfolder?
Not an unusual situation, I have a blog on blog.domain.com it has quite a few blog postings. The platform is old and will be scrapped, but the blog content itself is going to be moved to domain.com/blog. The current process is we are manually listing all linked to/content pages and we are going to 301 redirect them to their counterparts on the new blog. This is going to be a tedious process. A) Is there any way to automate the moving of the blog? B) What is the best way to do the massive 301 redirect, php headers, .htaccess? Should we move the individual pages with redirects, or redirect the domain in the .htaccess (this will be very difficult to match all the titles and file structure)?
Technical SEO | | MarloSchneider0