I've recently swapped one of our sites to new hosting and upgraded to https. 301'd everything and all of that is working well, SE are starting to index the https pages, etc. However, I have a lingering issue I'd like to address.
Before this swap, for the entire life of this particular site, all the links were hard-coded into the site as "http://example.com/content-goes-here". I'd like to change every link on the site to relative linking and thus drop the http://example.com part, leaving only "/content-goes-here" behind.
As it stands, the only way I currently know how to do this is to open every page, copy, paste, find+replace, copy, paste, save. Rinse and repeat for 1k+ pages. That seems like a nightmare and a waste of time. I was hoping there was a faster way. Someone who uses a WP site told me they were able to "open their database in Dreamweaver, find+replace, and were done in 15 seconds". I'd love to find a similar solution for my Drupal 7 site, but I can't seem to find a solution online.
I was very much hoping someone here with Drupal experience could point me in the right direction so that I'm not stuck editing 1k+ pages by hand...![]()


LinkBack URL
About LinkBacks
Reply With Quote


