Re: Use a 'variable' to avoid repeatedly typing URLs?
Stan Brown wrote:
1. The writer said he has many links on "a" web page.
2. Many text editors allow batch replacement in a collection of files.
3. http://www.orbit.org/replace/.
That's what I said.
Stan Brown wrote:
Fri, 14 Dec 2007 08:46:05 -0500 from Harlan Messinger
<hmessinger.rem ovethis@comcast .net>:
>
In one file at a time. You have to open every file and repeat the
search and replace.
>
I think that qualifies as "a lot of work".
<hmessinger.rem ovethis@comcast .net>:
>John U. wrote:
>Any text editor--even Windows Notepad--has a search-and-replace feature
>that will change the domain for you in a single operation.
>>Here is a common problem: I have many (100) links on a web page,
>>all pointing to different pages on the same domain (e.g., "http://
>>www.x12345.co m/").
>>>
>>This is a bother because (1) it takes a lot of typing, and (2) more
>>importantly , if (or when) the main URL changes, it takes a lot of work
>>to update the links.
>>all pointing to different pages on the same domain (e.g., "http://
>>www.x12345.co m/").
>>>
>>This is a bother because (1) it takes a lot of typing, and (2) more
>>importantly , if (or when) the main URL changes, it takes a lot of work
>>to update the links.
>that will change the domain for you in a single operation.
In one file at a time. You have to open every file and repeat the
search and replace.
>
I think that qualifies as "a lot of work".
2. Many text editors allow batch replacement in a collection of files.
3. http://www.orbit.org/replace/.
>
However, there should be *very* few occurrences of the domain name in
the HTML for a properly constructed site. The link to your home
page, from within the site, should be href="/" and not
href="http://www.example.com ".
However, there should be *very* few occurrences of the domain name in
the HTML for a properly constructed site. The link to your home
page, from within the site, should be href="/" and not
href="http://www.example.com ".
Comment