Changing URL structure in WP
-
Hi there.
Currently we have our blog (WP site) URLs setup this way:
However, it's hard to analyze blog's (only) content in Google Analytics now (since all posts have their own unique URL).
I want to change the structure to
companyname.com**/blog**/post-name
Question:
-
Is there a way to do it safely?
-
Will I have to 301 all the old links to the new structure or is there any other way to do the switch without losing any links?
-
Thoughts or any (other) suggestions?
Thanks much!
`Helen
-
-
Exactly! It's good time to revise all the titles! I think it's way better than 301-ing the whole blog. You never know how this may affect our ranking. It prob. would be fine, but you never know Thanks again!
-
You possibly have a unique ending to your blog posts now, so if you change, you'll not be able to compare prior to now in one easy step. That said, it may be time to look at your title tags site-wide and make things more uniform and have one ending for blogs and one for non-blogs.
Glad to be able to help! If you do decide to 301, that redirection plugin is real easy. It's also handy to have anyway, since it can log 404s and let you make redirects from your 404 log. That's handy if someone links to you and types the link wrong, or hyperlinks a period at the end of things.
-
Ohhh... that's right! This may actually work! I will just change the title (ending) for all of my Blog posts, and create an advanced segment with that! Ha! Good thinking, Keri! Better than 301'ing the whole blog, huh! Thanks!
-
Hi Helen, I opened the thread back up for you so it's not marked answered anymore.
The title tags on that site have been somewhat inconsistent, which could actually serve you well. You want to see if all of your blog posts have " | Cucumber Marketing, Vancouver" at the end. The few that I looked at (other than your blog home page) did, while your other pages had slightly different endings on your title tags. If it is unique, that's one way you can separate things out in GA.
-
Oh... looks like I accidentally "closed" my question thread ..
Here's our blog:Â http://www.cucumbermarketing.com/blog
Any other thoughts on how I could track the blog (in its current condition/ URL structure) - an "easy fix" Â I think I will do the redirect though (using one of the plugins recommended below).
Sigh... that's what I was trying to avoid .. hehe... But thanks you guys for your suggestions! :))
-
Oh, I like this one that it  does 301 automatically!
GA URLs... sigh.. Agreed, too often it's an after thought, eh?
-
Question:
**Is there a way to do it safely? **
Will I have to 301 all the old links to the new structure or is there any other way to do the switch without losing any links?
Your current URLs have the advantage of a clean look, but they don't scale well at all and this is one of the challenges you face. I would suggest having a regex expression written for your htaccess file. Any time a link does not map to a current page (i.e. 404 error) then it could try to add /blog to the URL and try to reach the page. Care would be necessary to restore the original link if another 404 error is received.
You did not mention the size of your site. The idea of writing hundreds or thousands of 301s manually is simply not reasonable when it can be avoided.
Thoughts or any (other) suggestions?
Definitely add the post id to your new URL. I understand you want the "prettiest" URL possible. That desire needs to be balanced with system performance and the user experience.
For PHP or a database to sort through text fields will definitely cause performance issues as your site grows. When a user does a search your server will not like it, especially if you are on a shared server.
I would recommend your Pemalink settings to be something along the lines of /blog/%post_id%.%postname%/
Your final URL will appear as companyname.com**/blog**/123.post-name
I know you are looking at the URL thinking you don't like the number. Most users will never notice, and it offers multiple advantages.
-
I use the Redirection plugin on my site, and you can set it so it automatically creates 301s when you update URLs. I did that when I added a directory to my site and moved some content underneath it. http://wordpress.org/extend/plugins/redirection/
For URL structure that is friendly with Google Analytics, check out this post over on LunaMetrics. http://www.lunametrics.com/blog/2010/09/22/designing-google-analytics-friendly-site/
-
Either way, it's going to be a pain.
1. 301 forward the old URL's and rewrite the WP URL's to inclue "/blog/"
2. Create a custom segment in google analytics, filter by "url equals" with each blog url as its' own "OR" declaration.
-
Yeah... I was hoping there would be a quick fix. .. I am also wondering if it's worth the hassle changing the URLs... again .. I just want to track our blog articles properly, but maybe there's a way to do so without changing the URL structure?
e.g. I was thinking of simply creating advanced reports for all URLs that include /blog/ ... but again .. if I change the URLs then I will lose all the data from the last 3 yrs ... because I'll have different URLs.... hmm ... Thoughts? (I hope I am making sense
-
Hi Helen,
ironically I was jsut logging in to the QnA to ask about WP URLs and URL structures in general!
If I was you I would 301 redirect them to be safe as this is still the best way to do it according to Google themselves.
You can use a WP 301 add on like this to do it http://wordpress.org/extend/plugins/simple-301-redirects/
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
-
Best SEO Structure For E-Commerce With Products Using Multiple Categories
Hi all, I am in the process of re-structuring my e-commerce website for better SEO and user experience. I have done some keyword research and would like some advice on how best to structure my site around those keywords. For example, my site (All Things Nature) sells a brand of wooden sculptures (Woodsculp) and I would like to rank for keywords related to that brand, the brand by animal, the brand by collection and the brand by release date.
Content Development | | nb2e4fg
Examples of keywords could be: Brand by Animal: Woodsculp Dogs, Woodsculp Cats, Woodsculp Elephants
Brand by Collection: Woodsculp Pets, Woodsculp Safari
Brand by Release Date: Woodsculp Christmas 2023, Woodsculp Summer 2022 I would create each of these keywords as a category so that they can be found by a search engine and by users. I would then structure as follows: All Things Nature -> Woodsculp -> Woodsculp by Animal -> Woodsculp Dogs
All Things Nature -> Woodsculp -> Woodsculp by Animal -> Woodsculp Elephants
All Things Nature -> Woodsculp -> Woodsculp by Collection -> Woodsculp Pets
All Things Nature -> Woodsculp -> Woodsculp by Collection -> Woodsculp Safari
All Things Nature -> Woodsculp -> Woodsculp by Release Date -> Woodsculp Christmas 2023
All Things Nature -> Woodsculp -> Woodsculp by Release Date -> Woodsculp Summer 2022 The only problem with this structure is it would take more than 3 clicks (4) for the user to reach a product. How critical is this for good SEO and user experience? Would I be better off getting rid of the ‘Woodsculp by Animal’, ‘Woodsculp by Collection’ and ‘Woodsculp by Release Date’ categories? Structure would look as follows: All Things Nature -> Woodsculp -> Woodsculp Dogs
All Things Nature -> Woodsculp -> Woodsculp Elephants
All Things Nature -> Woodsculp -> Woodsculp Safari
All Things Nature -> Woodsculp -> Woodsculp Christmas 2023 The only thing with this is there would be a lot of categories under the brand name which might make it more difficult for search engines and users to logically follow. Would I be better off getting rid of the brand category and replace them with the keyword categories? Structure would look as follows: All Things Nature -> Woodsculp by Animal -> Woodsculp Dogs
All Things Nature -> Woodsculp by Animal -> Woodsculp Elephants
All Things Nature -> Woodsculp by Collection -> Woodsculp Safari
All Things Nature -> Woodsculp by Release Date -> Woodsculp Christmas 2023 This would organise things more logically but I would then lose the brand category (and the potential of the brand keyword ranking?) Would I be better off choosing one main keyword to use as a category and then use tags for the other categories? Categories: All Things Nature -> Woodsculp -> Woodsculp Dogs
All Things Nature -> Woodsculp -> Woodsculp Elephants Tags: Woodsculp Safari
Woodsculp Christmas 2023 The next issue I have is that I have products which could fall under several different categories. A product called Elijah Elephant, for example could fall under Woodsculp Elephants, Woodsculp Safari and Woodsculp Summer 2022. In previous e-commerce sites I have never assigned multiple categories to one product (I instead have used tags). Is it good practice to organise products under multiple categories for an e-commerce site? Thanks in advance for any help and advice.0 -
I work on a uk decorating website with five of our own bloggers all of which reside on the home page of the website on their own separete blogging urls as sub domains - is this a good idea or would google not like this from an seo point of view?
Should blogs that are part of an overall content site be on separate sites and link in or is it ok to promote them as content on the home page of the site and take users off to their own url to view the site. Is this good practise for seo?
Content Development | | Pday0 -
URL structure on moving from old nukedit site to Drupal
I am currently rebuilding a site in Drupal. The old site was in Nukedit and all the urls end in .asp. Given the new urls will not end in .asp is there any point in matching the rest of the url or will using 301 redirects (to better seo'd pages) be sufficient to minimise any (temporary) ranking loss?
Content Development | | chunki0 -
Adding a new wp client to subdirectory - SEO?
Im working with couple of clients in the travel business. Im building up a network of blogs that add content, internal contextual links and so forth to clients websites. What I want to do is to install a fresh wp client to a subdirectory e.g. www.mydomain.com/blog for every and each client. This way I can get my outsourcing workers to log-in there and write content, add internal contextual backlinks etc. This also solves the problems of letting them learn on various different local CMS systems that are often just in the local language - that nobody understands:) So either I install it as an additional wp client if the clients has a wp client for the root domain. Im wondering what effects this will have on SEO and what is important to do?. E.g. do I install a new sitemap for this new wp client in subdirectory - or do I merge it with the one for the root domain. How? In regard to GA tracking - do I add the same tracking code to the new wp install or somehow merge it into the root domain? Are there some issues I need to worry about especially when using this approach?
Content Development | | rrrobertsson0 -
URL loss
Hi, Our site contains some subsites in subdirectories. One of these sites, joins content from our partners' blogs. Now we have about 51.900 results on Google for this subsite. We are thinking about change the format of this subsite, but we are worried about the number of URL's that will be lost. The question is, the search machines will "punish" us for these losses and affect all domain ? Regards, Juan Santos
Content Development | | kauelinden0 -
What Website Visual Structure Software Do You Use?
I need to continually create website trees for our group of websites. I was wondering what software you guys use to create site structure/trees? I've used Powerpoint, Giffy and other diagram software but ideally I want to find something that crawls my site and spits out a diagram and also gives me the option to add none existing trees so I can show new purposed sections. Cheers, Gary
Content Development | | Seaward-Group2 -
Reusing Older content urls
Hi I have Windows Phone Games related site , we often post press release for various games as soon as they get released and later in a week or 2 we review some of these games . My question is , would it be better if I use use the old post and just delete the press release and post the review in that space . I will use an example to explain the situation Today I will do a press release : http://www.bestwp7games.com/infinite-flight-flight-simulator-for-windows-phone-7.html then say after a week I publish a review : http://www.bestwp7games.com/infinite-flight-windows-phone-flight-simulator-review.html My question is would it be better ( from an SEO point of view ) if I just delete the content from http://www.bestwp7games.com/infinite-flight-flight-simulator-for-windows-phone-7.html and add the review content in to that post ? PS : I am not a SEO guy so this might be a stupid question , if it is just go easy on me 🙂
Content Development | | Saijo_George0 -
Changing Text on Pages
For one of my sites I'm in a situation where I have 6 main pages that are for lack of a better word "showcased," one of which being the homepage. The problem is that I am seeing pretty good traffic growth, but my conversions/sales are really weak, and I'm about 95% positive that this is because there is too much information on all of those pages --- each one has about 1500 words or so. The site architecture and link structure on the site is good as out of the couple of hundred pages on the site only 3 of them aren't indexed according to Google webmaster tools. What I want to do is rewrite the text on those six main pages with more of a sales type of feel and limit them to 500-700 words or so. This will have no impact on the link architecture whatsoever, but I'm a bit worried that it will have a negative impact on my continual traffic growth. Actually, I'm not as much concerned about the continual part as the steady new content stream should take care of it, but I would be very concerned if I lost the rankings that I have right now. Granted, those rankings aren't worth as much as they could be because conversions are down, so so it's kind of a catch-22. The question is, how dangerous is what I'm planning on doing? On a side note, my lack of conversions has nothing to do with my description or title tags that show up in the results as they are targeted properly and written for sales. The problem is that the pages, though rich in content, are a bit too rich in content and need to be fixed to work in unison with the descriptions and titles.
Content Development | | RussNauta0