I need to repath a webpage to move it...

Hello,

I'm not really sure how to word this, but I was wondering if anyone knew of a program or something that would repath all the pages in a web page, so I can move them to a new server. Right now everything is on the server with the path \\iis\intranet , so every page points to that in the beginning of its link. What I need to do is make it \\newserver\intranet, so I need some way to go through and change all of those pages to point to the new server instead of the old one! Thanks!
mikerunkelAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yuzhCommented:
Not a problem, you can use  Tintin or my script in:

http:Q_21192229.html

to replace string "iss" with "newserver"

please make sure you have a good backup, before making the change.

You need to run the script under Linux/Unix box.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mikerunkelAuthor Commented:
Okay, I will give that a try. I will have to get a machine to set up Linux on first....
0
yuzhCommented:
A lesson to learn from this case, if the webpages are sitting in the same webserver, don't
hard code the links with "servername" + "path", use relatived path to the server document root dir. When you need to change server, you can simply transfer the web pages accross without have to modify them.

Good luck!
0
mikerunkelAuthor Commented:
Thanks that seemed to work fine. Yes, I mentioned that lesson to the original designer....and to the current designers!!
0
yuzhCommented:
You are welcome, cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.