By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,879 Members | 1,859 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,879 IT Pros & Developers. It's quick & easy.

Replacing links en masse on an ftp accessible server only

P: n/a
Hello All:

I have access to my web server only through ftp.

There are some directory structures that an administrator changed, and
all my links are broken.

I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Are there any tools out there that can work through an ftp connection?

Thanks!

Deguza
Mar 10 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Kompu Kid" <de****@hotmail.comwrote in message
news:15**********************************@i7g2000p rf.googlegroups.com...
Hello All:

I have access to my web server only through ftp.

There are some directory structures that an administrator changed, and
all my links are broken.

I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.
Sorry to be obvious, but is there any reason why you cannot:

1) download the files to your local machine via FTP
2) run the "small program" as described above
3) save and upload the files, replacing the old versions
?

--
-=# Amos E Wolfe #=-
Mar 10 '08 #2

P: n/a
On Mar 10, 1:00 pm, "Amos E Wolfe" <amos.wo...@ntlworld.comwrote:
"Kompu Kid" <deg...@hotmail.comwrote in message

news:15**********************************@i7g2000p rf.googlegroups.com...
Hello All:
I have access to my web server only through ftp.
There are some directory structures that an administrator changed, and
all my links are broken.
I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Sorry to be obvious, but is there any reason why you cannot:

1) download the files to your local machine via FTP
2) run the "small program" as described above
3) save and upload the files, replacing the old versions
?

--
-=# Amos E Wolfe #=-
Hello Amos:

That is the alternative we are already considering. However, we are
talking about many gigs of html. Last time I tried to download it it
took 8 hours or so.
Deguza
Mar 10 '08 #3

P: n/a
rf

"Kompu Kid" <de****@hotmail.comwrote in message
news:77**********************************@s8g2000p rg.googlegroups.com...
On Mar 10, 1:00 pm, "Amos E Wolfe" <amos.wo...@ntlworld.comwrote:
>"Kompu Kid" <deg...@hotmail.comwrote in message

news:15**********************************@i7g2000 prf.googlegroups.com...
Hello All:
I have access to my web server only through ftp.
There are some directory structures that an administrator changed, and
all my links are broken.
I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Sorry to be obvious, but is there any reason why you cannot:

1) download the files to your local machine via FTP
2) run the "small program" as described above
3) save and upload the files, replacing the old versions
?

--
-=# Amos E Wolfe #=-

Hello Amos:

That is the alternative we are already considering. However, we are
talking about many gigs of html. Last time I tried to download it it
took 8 hours or so.
Think carefully about this.

If you find or write a program to do what you want via FTP then what is it
going to do?

It will "open" the file, that is read it into memory, that is, effectively,
download it via FTP to the local machines memory. Then it is will change the
in memory copy of the file. Then it will "save" the file, that is,
effectively, upload it via ftp to the host machine.

Same as FTPing all the files down, changing them locally an then FTPing them
all back up again.

What you *really* want is a program (or, say, PHP script) that runs on the
host.

--
Richard.
Mar 10 '08 #4

P: n/a
On Mon, 10 Mar 2008 12:35:12 -0700 (PDT)
Kompu Kid <de****@hotmail.comwrote:
I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Are there any tools out there that can work through an ftp connection?
You could use Apache as a proxy, with the regime described in
http://www.apachetutor.org/admin/reverseproxies

Apache supports FTP both as frontend and backend, but I suspect
your task may be easiest if you use HTTP for the frontend, and
FTP at the backend only.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
Mar 10 '08 #5

P: n/a
Kompu Kid wrote:
That is the alternative we are already considering. However, we are
talking about many gigs of html. Last time I tried to download it it
took 8 hours or so.
What is the server? Apache? Do you have access to .htaccess file and
rewrite mod?

RewriteEngine on

^foo/(.*)$ bar/$1
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 11 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.