How can I "easily" change all the web addresses in my code from one server to another?

m-coon
m-coon used Ask the Experts™
on
How can I "easily" change all of the web addresses in my code from one server to another? I thought there was a command that would go through the code and change all of the addresses automatically??? Please let me know.

thanks,
m-coon
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If you use absolute path. There is no need for conversion.

I mean.. if you use this:

images/image.gif

instead of

http://www.yoursite.com/images/image.gif


It will not matter if you change server, just make sure the directories are within their respective directory.




So, just in case you have your site done in the second way.. of typing the full URL.

My way was to use the REPLACE function within frontpage..

So what you do is..

1.) OPEN THE WEBPAGE
2.) GO TO HTML VIEW
3.) REPLACE (CTRL + H)
4.) So.. type here..

REPLACE: http://www.yournewsite.com
WiTH: http://www.yoursite.com

* don't put images/image.gif, else they will only replace that file :-)

What we want is to mass edit here, within a few secs.

Thanks
Aaron
http://www.eshock.org

Author

Commented:
Can you explain the REPLACE feature you spoke of here, please??? I'm not sure I follow you...

Thanks,
m-coon

Commented:
You see,

What we do is that we REPLACE..

Perhaps dude..

Give me the urls.. post it here

Your existing url and the url you want to convert to.

Basically the idea.. is to replace all the image links or ahref links within your document to your new url :-)

Thanks
Aaron

Author

Commented:
Current is:
http://www.e-lixirweb.com/mcoon/images/bullet.gif
Needs to be:
http://www.gnt.net/~m-coon/bullet.gif

Does this help you?
There are about 100 or more of these links - I don't want to do them one at a time!!!

Thanks,
m-coon

Commented:
Hi Dude,

So what you do now is this..

I believe your webpage is:
http://www.e-lixirweb.com/mcoon/

What you do now.. simple..

1.) Goto open your index page.. or open any other page that you want to edit in frontpage.

After which, you should see your page.. in NORMAL VIEW..

We want it in HTML view.. (you can change view by clicking on the tabs on the bottomleft corner)


2.) While inside HTML view..

Press (CTRL + H) for the replace function..

FIND WHAT: http://www.e-lixirweb.com/mcoon/images/
REPLACE WITH: http://www.gnt.net/~m-coon/



Viola! All your images are now link to gnt.net :))

But dude.. I don't think you uploaded all your pictures from mcoon/Images to gnt.net yet.. right?

Hope this helps

thanks
aaron
http://www.eshock.org

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial