Redesigning a really old Website with old-fashioned permalinks
-
Hey SEO-Pros,
I'm currently redesigning a quite old website, with the following URL structure:
TLD/category/category.php?interview_id=819
The new Version will be a little more SEO-friendly:
TLD/interviews/name-of-interview/
I know I have to do a 301-Redirect for all the old URLs to the new ones in order to keep the (until now pretty good) Google Ranking. If the rankings drop after the redesign has been done, I'll surely get killed
So, Is there any easy way of creating these 301-Redirects (must be thousands of URLs...)?
Best Regards guys and thanks for your help!
-
Thanks Ryan, so this means to get for example interview_id=819 redirected to the correct article, I have to provide the ID also in the new URL?
TLD/category/category.php?interview_id=819
to
TLD/category/interview-name-819
Should be something like this in Regex:
RewriteRule ^category/([^/]+-)?([0-9]+)/?$ category/category.php?interview_id=$2
EDIT: After working on it the whole day I found the following solution (as I'm working with Wordpress). Maybe it is useful for anyone:
I'm using the following function now:
add_action('parse_request','oldsite_redirect',0); // 0=before (most) 'parse_request' calls
function oldsite_redirect() {
if (isset($_GET['interview_id'])) {
global $wpdb;
$sql = "SELECT post_id FROM {$wpdb->postmeta} " .
"WHERE meta_key='interview_id' AND meta_value='%s'";
$sql = $wpdb->prepare($sql,$_GET['interview_id']);
$post_id = $wpdb->get_var($sql);
if ($post_id) {
$permalink = get_permalink($post_id);
if ($permalink) {wp_safe_redirect($permalink,301);
exit;}
}
}
}Solution found here: http://wordpress.stackexchange.com/questions/12824/url-rewrite-based-on-a-custom-field-value/
-
Regex is the replacement language used to provide the logic for redirects. If you can establish a logical pattern for the redirects, then someone can write the Regex expression to perform the work.
For example, if you used category ids and whenever category_id=1 you wanted it to be replaced with /interviews, you can write an expression to do such.
Without seeing more information specific to your situation, I cannot comment if you can benefit from this method. In brief, try to find a pattern and articulate it. If you can say "I want to replace X with Y" then the solution will typically work.
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
-
Any risks involved when we have huge list of redirects in our website database?
Hi all, We have changed hundreds and thousands of page and page URLs for last 10 years in our website. So, now we are going to redirect most of the old pages/links to the current related pages. This will increase the number of redirects we set in our website database to thousands. Will this put any extra weight on crawler and any risks involved for employing too many redirects. Thanks
Web Design | | vtmoz0 -
Multiple H1 Tags for different section on one webpage in HTML5 Website? Should I have only one?
https://www.tcs.com website has multiple H1 tag on around 40 out of 1000 pages. Webpage has different section and each section is important that's why used multiple H1 tag (one h1 for each section) **I understand, google will not penalize for multiple H1. But having multiple H1, for site like tcs, is it good or should use only one H1 tag? **Pls check https://www.tcs.com to see heading tag(6 heading tag used).
Web Design | | JayprakashSEO0 -
Making a website menu + structure + hierarchies + kw research
When making a new website structure I assume we all think about SEO but at the same time as we can't forget UX.
Web Design | | ceranoktan
How much of your KW research would you implement in menu \ website structure?
What do you think is important to think about when making a website structure? Thank you in advance, BR,
Ceran0 -
Wordpress SEO/Tag plugin recommendation for sports (soccer) website
I own a Wordpress website which covers soccer in the DC MD VA area called DMV Soccer http://www.dmvsoccer.com/ We write weekly recaps where we tag a player who has scored a goal or performed well in a game. For each player, obviously, a tag is created. What I'm looking for is a plugin or solution that would allow me to tag a player, but also automatically assign a team to that player so that the team name and player's name are optimized on the individual player's tag page. So if I were to tag George Murphy on a recap, and I assign him to a team, let's say DC United. The tag page would have a title, something like: George Murphy Soccer Player for DC United and the meta description: George Murphy, soccer player from MD who players for DC United archives Or something similar, if that makes sense. Should I skip using tags and instead start assigning each player as a sub-category under each team? I'd like to try to avoid that, because not each category will be based on a player. Any suggestions in terms of existing plugins or other recommendations?
Web Design | | georgetsn1 -
Would you consider these website designs an upgrade?
Hello everyone, I've asked a few questions in here regarding website design, etc. So first I want to thank you guys for the responses, and second I want to apologize I hope I am not boring you guys. I just feel like this is a forum of qualified people and I value your opinions greatly. Now to my question, I am considering a redesign as we are not happy with our current site located http://www.studentdebtrelief.us/. We think it feels outdated, not structured well, no good call to actions, ten different fonts, blurry images, does have good integration with social media, boring and bland news page, etc. I just wanted some opinions on these other sites that were designed by the fellow we are considering hiring. I've gotten some feedback from a friend that he doesn't think they would be an upgrade from our current site, which I totally disagree with. Though I am the first to admit design/creativity is not my strong suit, so I don't value my own opinion on this very much either, lol. I am hoping I can get some insight from you guys here. Do you think the designs below are of higher quality than our current site? Would you be more inclined to continue reading these sites than our own? Is there one in particular you think is the best? http://www.jayhafling.com/wp-content/uploads/2010/08/archive.jpg http://www.jayhafling.com/wp-content/uploads/2010/08/zazachat.jpg http://www.jayhafling.com/wp-content/uploads/2013/03/jetpeppers3.jpg http://www.jayhafling.com/wp-content/uploads/2013/05/pbs_9001.png http://www.jayhafling.com/wp-content/uploads/2013/05/fidgetfeed.png http://www.jayhafling.com/wp-content/uploads/2013/03/haute.jpg http://www.jayhafling.com/wp-content/uploads/2010/08/worketc-732x1362.jpg Thanks for the help
Web Design | | DemiGR0 -
Website 'stolen', no contact details
Hi all, Wondering if anyone could help out here, good a very strange issue.... Went into Google Webmaster Tools and looked at the incoming links to a client's site (new client, only just gained access to WMT) and noticed 2563 links coming from a domain. Upon viewing said domain it is a 100% copy of the clients site, I mean 100%; the phone numbers, email address etc are still pointing to the client's site. Everything is the same, the pages, the navigation etc. When I click on a link on the copy site it loads the same pages but at their site, the internal linking points to the version of the pages on their site. It seems to be an ongoing thing because the last time the client updated their blog was last week and this is on the copy site. Obviously this cannot be helping with regard to seo. The client knows nothing about it so not come from them. The copy site is indexed in Google!!. The first thing to do is to contact these people and ask what they are doing. This is proving to be easier said than done, the contact details (as mentioned above) on the pages still point back to the client and the whois gives no details. What would be the first step to take here? Obviously there is the whole legal area about stolen content but that can wait until we have the site down and out of Google. Is there somewhere in Google to report things such as this? I will speak to client and if they are happy I will share both the domains in question, they know I am seeking alternative opinions Many thanks Carl
Web Design | | GrumpyCarl0 -
Tips on website redesign on site with messy URLs?
So I've inherited quite a messy website. It was in drupal and the owner wants it in wordpress. One of the problems is the link paths. Should I try to recreate them exactly? i.e. something/somethingelse/page/ or use redirects (which I'm not confident in doing). Also, some of the pages end in .html, others in a back slash and others without slahes, there's no consistency. Do you have any tips in general? I remember an older seomoz blogpost about successful website relaunches (with press releases and mass emails and stuff being sent out on launch to boot). Thanks!
Web Design | | seonubblet0 -
Website platform
I read through this 2008 Moz post and comments: http://www.seomoz.org/blog/choosing-the-right-cms-platform-for-your-website-from-an-seo-perspective but a few years have passed since the discussion. I am looking to completely revamp my site which is primarily static and built on WordPress, and create a rich community environment that is highly interactive and serves the visitor well. The question continues to come up why I'm using WP vs DotNet vs Drupal vs Juumla. The honest answer is: 1) it's easy for a non-tech like me to update, 2) seems like a lot of plugins are available for use, 3) has a high adoption rate (stable) But also, I kind of don't know what I don't know. I wanted to open up the conversation to see why others favor a specific platform as it relates to the following needs: Must be non-tech EASY to use (no high learning curve Lots of plugins and interoperability - can add and remove as needed/times change Must support forum/community needs and conversations Must be able to create granular authentication / permissions for different audiences to see "permissioned" content BONUS if it can interoperate with MS Dynamics CRM (unfortunately, sigh) I've been burned in the past by using teams that had a predilection for a platform simply because they were comfortable with it - not because it was right for my needs. I have a hard time understanding pro/con conversations if the technologies are too focused on the tech and not enough of what the technology delivers, and I'm naturally resistant to technologies that require a techie, rather than a marketing expert to use them.Thoughts anyone? Would love to hear Mozer opinions - thanks in advance 🙂
Web Design | | JeanieWalker0