Forum OpenACS Q&A: Static Page Templating with .html extension
Posted by James Thornton on 09/10/03 04:58 PM
I have a 3.x site that I'm migrating to 4.x, the 3.x site has many static pages, and all of the links are in the form of somepage.html. I want to wrap the default template around them, but it seems that templating only works if you leave the .html off so is there something I can set to make templating work without breaking all the links?
2: Re: Static Page Templating with .html extension (response to 1)
Posted by Jade Rubick on 09/10/03 08:19 PM
James, you could make a .vuh file that checks if the request is for an .html file, and then redirects to the file without the .html extention.
I think that would work.
3: Re: Static Page Templating with .html extension (response to 2)
Posted by James Thornton on 01/17/04 05:47 AM
I'm trying to trace through the templating and request processor code to find the place where templating is ignored when a file with an extension is specified.
Does anyone know where this is?
4: Re: Static Page Templating with .html extension (response to 1)
Posted by Jade Rubick on 01/19/04 07:15 PM
I believe it is Aolserver, not the templating code, but I could be wrong.
5: Re: Static Page Templating with .html extension (response to 1)
Posted by James Thornton on 01/19/04 10:18 PM
Jade - Why do you think it's AOLserver? -- If you enter the file with the extension, the page is served without the OpenACS template.