PDA

View Full Version : editing one link - changing all links???????



Anayet
June 10th, 2001, 08:42
This is a bit complicated to explain, but here goes.

If a html page had links on it such as:
http://www.site.com/file1.zip
http://www.site.com/file2.zip
http://www.site.com/file3.zip
http://www.site.com/file4.zip


Could I add another section to that html page that would allow me to change the first part of those links all at once?

For example if i wanted to change the links parent directory from being http://www.site.com to being http://www.anothersite.com instead of changing each link one by one, i'd only have to edit one main html section to http://www.anothersite.com and all of the links will change to:
http://www.anothersite.com/file1.zip
http://www.anothersite.com/file2.zip etc etc


Is this possible?
Do you understand me?:rolleyes:

If you know how, please tell me.

Thanks
Anayet:D

LeX
June 10th, 2001, 09:51
See if the text editor you use has the find/replace option. A lot of 'em do.

Anayet
June 10th, 2001, 09:55
Yeh it does, but I was looking for comekind of html or script or something that will do what is explained in the post.

Thanks for the reply though.

Does anybody know how to do this?

Baggio
June 10th, 2001, 10:56
You trying to get mirror download sites or something?

polestar
June 10th, 2001, 13:09
I think this is what you mean...

Insert this between your <head> tags:

<base href="http://www.anothersite.com/main/html/">

Or whatever site or folder you want.