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
-
Traffic to blog home page is going down after changing my WordPress Theme
I recently changed my wordpress theme from a standard free theme to a newer theme. The home page I switched up a bit adding more calls to action to some of our top posts and leading people to popular categories and so on. This greatly improved the usability of our site as it allowed us to highlight new posts. The previous free template simply listed 10 of our most recent posts on a page with small snippets and then you had to move to the next page to keep reading. Since switching my theme the blog traffic has stayed relatively level. That being said, the specific posts traffic is going up a lot whereas the organic traffic to the blog homepage is now nearly depleted. Is this a common thing to happen or is there anything I can do to fix this issue?
Content Development | | saultienut0 -
Community Discussion - Are URL profilers worth the investment in time and effort?
In a recent post, Craig Bradshaw shared how creating a URL profiler can work wonders for brands looking to learn what links competitors have attained and which links your brand should be trying to acquire. We're wondering if your marketing team has made use of URL profiiers, for your brand or the brands you support, and if so have you found them to be worthwhile? RS
Content Development | | ronell-smith3 -
Wordpress Overly Dynamic URLs
Moz is giving me an overly dynamic URL warning for around 30 or so of these on our blog. http://blog.domain.com/?page=products&do=domain-com-looks-like-a-blog-title I have no idea what's causing this, we have the permalinks set up for category/post and are running yoast. Anyone have any idea what it is? And how can I stop them being crawled. They link to the blog homepage when clicked, which is set to canonical in the head so it shouldn't do any harm - but i'd like to remove them all the same. Will /Disallow /?=page work in robots.txt?
Content Development | | SolopressPrint0 -
Questions about reorganizing a website's content structure
I'm working with a publisher who is considering reorganizing the content on their site, which up to now has been presented more or less as a portal site for a variety of segments in a particular business industry. One scenario that is on the table is to remove some content sections altogether and republish them under their own unique domains. It's important to note that this reorganization would be part of a new brand strategy. So my first question is whether this is one of those avoid-at-all-costs scenarios? My second question is if we decide to procede, what kind of time could it take for these new domains to generate the same level of search traffic they are currently pulling in on the portal site? Thanks!
Content Development | | accessintel0 -
Blog and Website = 2 different URL's - Is it WORTH to merge content on to one site
Good day Mozzers! A friend of mine recently asked for my help in regards to online marketing. While getting familiar with his online presence, I realized that he has a blog hosted under a completely different URL Main Site = http://pardons.org/ (page rank 4)
Content Development | | vip4service
Blog = http://pardons.wordpress.com/ (page rank 3) What I am battling with is whether or not he should take all of the blog content he has, and merge it on to his main site. It has over 280+ blog posts spanning over a few years, so there is A LOT of content that could benefit his main site. However is it worth it, or should he continue to run everything as 2 different sites? Also, of you suggest moving the content over, what would be the best way to do it in your opinion? He currently has links on his blog TO his main site, so there is a little bit of link juice there, but with a average of 300 views a day, he only get about 10 clicks to his main site from the blog. Thanks a ton for your help!0 -
How can i solve duplicate problem with different url needed?
My client is a big international firm with 10 websites with different url (.co.uk, .com, .com.au, .pl... etc). All websites are exactly the same except the price. I suggested them to only use .com and use region as a sub domain like au.xxx.com instead of xxx.com.au. However they cannot do that for some reason. I am trying to solve the duplicate issue. I dont think i can use 301 redirect or canonial link because all regions are making even traffics. Any suggestions?
Content Development | | ringochan0 -
Fixing Wordpress URLs
I just redid our blog and I am using permalinks. I have the custom structure set to /%year%/%postname%/ and catagory - blank. When I run the XENU Link Slueth, it shows all my blog urls as broken, but the links work fine. However the url structure is www.example.com/2010/10/20/ and so on. I am worried about duplicate content too. Do you know how I can fix the url structure so only 1 or 2 urls are used?
Content Development | | hfranz0