PDA

View Full Version : Help me!



Sniper
Mar 29th, 2007, 05:27 PM
Well... I have hosted thousands of files via ftp access on 4 different servers... now I thought about to make an downloadpage. My problem is, that the links are not like http://www.host.com/img.jpg... there like /img.jpg. So it would really suck to paste the host url on every single filelink. And I don't want to use iframes its not professional and it does not look good. :mad:

Maybe something in this way might work

<div... (ref: server 1)>
<a ... href="/img1.jpg">
<a ... href="/img2.jpg">
<a ....href="/img3.jpg">
...
</div>

<div... (ref: server 2)>
<a ... href="/img1.jpg">
<a ... href="/img2.jpg">
<a ... href="/img3.jpg">
...
</div>

...
It does not implicitly have to be based on divs... tables are good too... it was only en example of mine.
Is there any code available to make it work? :confused:

PS: I'm a German and really bad with english :D

Excavator
Mar 29th, 2007, 06:04 PM
Whatever your editing with must have a Find and Replace function.
Set to find something like
<a href="/
And replace it with
<a href="http://www.yourdomain.com/">
Then click on Replace All