University Web Developers

University Web Developers

development site to live site - update hyperlinks etc - HELP!!

Hi All,

I am in marketing, not IT/development so forgive my non-technical description:

I have been tasked with a complete redesign from a no-CMS website with very little in the way of resources or support, as we are a small school, and I have limited technical knowledge. I have one web coordinator also on the project.

We are approaching launch of our new website, built in WordPress, and using an external host, ServInt. During the build, we beta launched the site under the beta. subdomain, as our existing website was still live and the primary site.

We (marketing) as project managers for the redesign have just come to the realization that we will need to go through and remove the "beta" from URLs after launch when the site goes live and takes over the domain without the "beta" or the links will break. This means many, many hours of doing this manually. We had been advised previously that the URLs with beta would continue to work.

Are there any scripts that will do a global "find and replace" across a WordPress multi-site set-up, or any other solutions we can look at?

Also, aside from on-page hyperlinks, how will page URLs be affected? We are in the dark at this point and in need of technical advisement on how best to proceed to be in line with best practices. Our IT dept. is understaffed, over capacity, and was not involved in the project (if that is not already obvious).

Any advice?

Tags: URLs, and, beta, development, find, hyperlinks, links, redesign, replace, scripts, More…site, to, troubleshooting, web

Views: 175

Replies to This Discussion

Do you want all URLs to change from something like:

http://beta.school.edu/something/something-else/

to

http://school.edu/something/something-else/

?

We've done this in the past, in the database itself using this script:

http://interconnectit.com/124/search-and-replace-for-wordpress-data...

It will allow you to safely do a find/replace across your database. As

always, it would make sense to test this on test data before doing it

on you live data. And make backups. :)

I owe you big time, my friend. ;)

This plugin also worked for me in the past. http://wordpress.org/extend/plugins/root-relative-urls/

Thank you!! I like having options. ;)

Sarah - Here are the 4 SQL queries to do a find and replace for all URLS both in the content and the permalinks. I use this all the time when I move sites from local development to live sites.  Your database manager will know how to run these queries.  It takes just a few minutes to do (but always backup your database beforehand).  The only things you will need to modify are the two URLS, and the wp_ if you changed the table prefix when you installed Wordpress.

UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com') WHERE option_name = 'home' OR option_name = 'siteurl';


UPDATE wp_posts SET guid = REPLACE (guid, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');


UPDATE wp_posts SET post_content = REPLACE (post_content, 'http://www.oldsiteurl.com', 'http://www.newsiteurl.com');


UPDATE wp_postmeta SET meta_value = REPLACE (meta_value, 'http://www.oldsiteurl.com','http://www.newsiteurl.com');

awesome - thank you!!

Cara, doing it this way could break any serialized data (in wp_options), though. Just something look out for.

One symptom of broken serialized data is that your widgets lose all their settings after the find/replace.

Thank goodness for the tech people in the audience. My hat is off to both of you, Cara and Bill.

Bill, I've never had that issue as I'm only changing the home and siteurl fields in wp_options table

Ah yes. Good point. Thanks for clarifying!

It's a good point though.  You don't want to do a simple search and replace of the sql file in textedit, losing your widgets can be a big ol pain.

RSS

Elsewhere

Latest Activity

Daniel Bashaw replied to Kimbel Jeffers's discussion Office Reservation software
"Hi Kimbel -- Does you manual process include a checklist and workflow documentation? If not, it sounds to me like checklists and schedulers are your best next steps. You can structure and document what you do now, and then look at it to see if there…"
yesterday
Kimbel Jeffers replied to Kimbel Jeffers's discussion Office Reservation software
"The problem is we use a manual process right now and things keep falling through the cracks."
Thursday
Annette Spearman replied to Derek Tonn's discussion Freelance web design recommendations (small projects)
"Hi Derek, We can help you! I'll in box you all my info so we can connect and set up some time to talk. Annette "
Thursday
Mark Rothbaum posted a discussion

5-Minute Survey on Use of Facebook in Admissions

We're conducting our annual survey on Facebook and Admissions. Please take a few minutes to complete the survey at:http://www.varsityoutreach.com/FacebookSurvey/Our GoalOur goal is to explore trends related to how schools are using Facebook to reach out to prospective and admitted students.How Is the Data Used?All data will be shown in the aggregate. Answers from individual schools will not be released and will remain…See More
Thursday
Profile IconSang Yoon and Brittany Smith joined University Web Developers
Wednesday
Colleen Brennan-Barry posted a discussion

HighEdWeb Welcomes Steve Wozniak & Scott Stratten

HighEdWeb is very pleased to announce HighEdWeb 2013 Annual Conference opening keynote speaker Steve Wozniak and closing keynote speaker…See More
Wednesday
faris ahmed commented on social networking web design's blog post Megastar Media Webby Award Honorees
"wow thats amazing article .  your stuff never fails to amaze me honestly . great work as always :D  something i would like to add in is that  the entries each year are rapidly increasing .  but i think thats cause they take the…"
Wednesday
Lynn Zawie posted a discussion

Freelance Web Developer Needed

Stony Brook University web team is looking for some help coding a new design.  HTML5, CSS3, JQuery, Responsive Design expertise needed.  If you are interested in bidding on this project, I am happy to share more details.  Work would need to begin early summer.  ..LynnSee More
Tuesday
Sara Michel commented on Lynn Zawie's group OmniUpdate
"Great blog post by Higher Education Marketing on leveraging Google pay-per-click ad extensions for higher ed."
Tuesday
Sara Michel commented on Lynn Zawie's group OmniUpdate
"Check out Naropa University's new online magazine. Looks awesome! Great job team."
Monday
Norma J Dowell replied to Derek Tonn's discussion Freelance web design recommendations (small projects)
"Hi Derek! First of all, apologies for taking so long to respond! Secondly, I am not your web developer for such an issue, but if you can find someone to pick their brain and use as a sounding board, it may be all you need.  In the past, when I…"
Monday
Daniel Bashaw replied to Kimbel Jeffers's discussion Office Reservation software
"Hi Kimbel. I know you've been tasked with finding a software solution, though I'm wondering if you may need an interim step first: Does your institution have checklists covering all of the steps needed in on-boarding, relocating, and…"
Monday
Kimbel Jeffers posted a discussion

Office Reservation software

I've been tasked with finding a software tool that helps manage the onboarding and exit process of new and departing faculty. Ultimately i would like this software to management faculty office interms of when resources can be removed from a particular office and when a new faculty member can be moved in with the necessary resources. This tool should have notifications and alerts so there are no conflicts with someone being removed from a office and someone being placed in a office. Does anyone…See More
May 11
Sara Michel commented on Lynn Zawie's group OmniUpdate
"Congrats to Harper College on going live with their new online course catalog! Looks great!"
May 10
Helen Mosher joined Aaron Rester's group
May 9
Helen Mosher joined Mark Greenfield's group
May 9
Helen Mosher posted a status
"After 8 years being away from higher-ed communications work, I'm very interested in returning."
May 9
Will Martin is now a member of University Web Developers
May 6
Sarah McMaster replied to Katra Farah's discussion Online chat interfaces
"Thanks, Daniel. We don't currently have any livechat solution so this is new fact-finding territory for us! I will keep the forum posted as/if we are able to move forward."
May 3
Daniel Bashaw replied to Katra Farah's discussion Online chat interfaces
"In our case the impact of our current proprietary chat tool seems to be minimal, as it is little-used. It requires log-in with contact details and is slow to load. I don't have any metrics on its impact to back up my perception though. I expect…"
May 3

UWEBD has been in existence for more than 10 years and is the very best email discussion list on the Internet, in any industry, on any topic

About

© 2013   Created by Mark Greenfield.

Badges  |  Report an Issue  |  Terms of Service