Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

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!
0
mikerunkel
Asked:
mikerunkel
  • 3
  • 2
1 Solution
 
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
 
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

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now