Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find & Replace strategy

Status
Not open for further replies.

plantfinder

Technical User
Sep 27, 2002
64
US
If I need to do a global find and replace ( I am changing my IP address), what is the best strategy to handle this? Especially in terms of what I do after I've changed everything on the local site. Do I re-upload my entire site? Do I delete the entire site on the remote server first? I have a database up there and asp pages etc for an ecommerce store.

Thanks

Mike
 
It's just a temporary test site while I'm designing it.
 
To quote ChrisHirst:
Why have you got your IP referenced in the code at all...

Unless explicitly necessary, You should always use relative links not absolute so no matter where your site is placed it will always work.

so instead of having

you should have links that look like

"apage.html"

That way even when the domain changes the website still works.








----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Thanks for the tip. I'm not sure I get what you mean as even if there is no IP address, there must be a domain name to go to and there isn't one I can use at this point.

Any thoughts on my original question?
 
I'm testing on the remote server. I need people to see it who are not in this area.
 
The internal links in a webpage should be independent of the domain.

The domain is just there for us humans to use to easily access a site. Internally the page should not care whether it is in mydomain.com, or in hisdomain.com or in theirdomain.com

Links shopuld look like:
<img src="\images\myimagejpg">
or
<a href="mypage.html">
<a href="otherpage.html">
etc..

There should be absolutely no need for your IP address or domain name to be there. The only time that would be necessary is when you have to link to another site somewhere else, then you would have the complete address including domain name.

having:
<a href="[red][/red]mypage.html"> Is not necessary.



----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top