Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Renaming of webpages and links

Reply
Thread Tools

Renaming of webpages and links

 
 
Deryck
Guest
Posts: n/a
 
      10-13-2004
A friend of mine has just inherited a website to overhaul. It needs to be
migrated from a Windows server to a *nix one first. Trouble is, the previous
webmaster has used mixed case file names and links and been very
inconsistent about it.

Consequently there will be a lot of broken links amongst the 20,000 (yes
this is a static html to CMS conversion project) files.

Writing a perl script to just rename files to entirely lower case might not
be so hard but fixing the links in the HTML would be a bit tougher.

Surely someone else has met this problem before and written a bit of code to
do this?

If anyone has a neat solution for this that does not involve manually
renaming and editing files it would be absolutely fabulous to be told of it.

Cheers

Deryck


 
Reply With Quote
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      10-13-2004
Deryck wrote:

> A friend of mine has just inherited a website to overhaul. It needs to be
> migrated from a Windows server to a *nix one first. Trouble is, the previous
> webmaster has used mixed case file names and links and been very
> inconsistent about it.


Look into mod_speling.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

 
Reply With Quote
 
 
 
 
Mitja
Guest
Posts: n/a
 
      10-13-2004
Deryck wrote:
> the previous webmaster
> has used mixed case file names and links and been very
> inconsistent about it.
>
> Consequently there will be a lot of broken links amongst
> the 20,000 (yes this is a static html to CMS conversion
> project) files.


If you're going to the trouble of a whole CMS, then creating a wee tiny script with a single regular expression shouldn't be too big
a problem, surely?


 
Reply With Quote
 
Deryck
Guest
Posts: n/a
 
      10-13-2004

"Toby Inkster" <> wrote in message
news .uk...
> Deryck wrote:
>
>> A friend of mine has just inherited a website to overhaul. It needs to be
>> migrated from a Windows server to a *nix one first. Trouble is, the
>> previous
>> webmaster has used mixed case file names and links and been very
>> inconsistent about it.

>
> Look into mod_speling.
>

Thanks Toby. We were just starting to look at the possibility of doing
something with apache (like apache calling a perl script which we'd write).
This looks like it might save us the job.

Cheers mate.

Deryck


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update to FAQ - Relative URLs for In-page Links and Links to Notes Garrett Smith Javascript 14 05-26-2009 04:50 PM
how to detect file creating and deleting and renaming files immediately in java master007 Java 8 03-06-2006 07:30 PM
E mail links on mozilla webpages Don and Sheri Firefox 1 09-18-2005 06:11 AM
Site Links and Physical WAN Links =?Utf-8?B?RW5mb1BhdWw=?= MCSE 2 03-22-2005 09:23 AM
FireFox and Zooming in/out on pictures on webpages.... Jeff Ingram Firefox 2 05-23-2004 06:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57