[sclug] How to split an HTML file?
Tom Dawes-Gamble
tmdg at hp.com
Sat Oct 25 09:05:47 UTC 2003
pieter wrote:
> I am trying to split a large HTML file into smaller ones and still
> have the links work properly etc.
>
> Does anybody know of some tool that can do this?
>
I'm guessing you mean you have a large file say mydoc.html in the form
<a name="intro">Introduction</a>
blah blah blah
<a href="/mydoc.html#step1>Step one</a>
<a href="/mydoc.html#step2">Step two</a>
<a name="step1">Step One</a>
Blah Blah Blah
<a name="step2"Step Two</a>
Blah Blah Blah
and you would like to split it in to three files into.html step1.html
step2.html
and that you want to automagicaly turn
http://yoursite.foo/mydoc.html#step1 in to
http://yoursite.foo/step1.html
I would look at Rewrite rules in the httpd.conf. You may als be able to
handle it using php
and then redirect to the correct page.
Regards,
Tom.
I
More information about the Sclug
mailing list