Pure static HTML frontpage using Rewriterules?

Author Message

Marco Zinn

Tuesday 16 August 2005 1:51:50 pm

Hi,
sometimes, i'd like to have a pure HTML frontpage (intro/splashscreen), when a user opens the URL http://www.blabla.com ... On this page, there would be a link/redirect to the "Home"page of ezpublish (Root node).
As ezPublish uses a default siteaccess, http://www.blabla.com current is the same as http://www.blabla.com/defsiteaccesname . Thus, i was thinking to tell the webserver:
"If someone requests / from this virtual host, server the static page. If not, process with the rewrite rule, which will redirect almost anything to index.php".
But i couldn't figure out, which rules would do this.
A second idea was to use the Directoryindex directory to send the browser to the static HTML frontpage (probably index.html), if nothing is specified after the / .
But i think, this also will need some new rewrite rule (part) to allow bypassing the index.php.

So... How do i do this?

Yes, I'm aware, that the issue also applies to any stylesheet or graphics, that this frontpage will use, but i'd store these things in the "allowed" ezPublish design directories.

Marco
http://www.hyperroad-design.com

Ɓukasz Serwatka

Wednesday 17 August 2005 12:10:49 am

Hi Marco,

This should help,
http://ez.no/community/forum/setup_design/solved_override_the_pagelayout_only_for_the_home_page

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 11:53:35
Script start
Timing: Jan 19 2025 11:53:35
Module start 'layout'
Timing: Jan 19 2025 11:53:35
Module start 'content'
Timing: Jan 19 2025 11:53:35
Module end 'content'
Timing: Jan 19 2025 11:53:35
Script end

Main resources:

Total runtime0.0241 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2891152.6406
Module start 'layout' 0.00550.0042 741.929739.4766
Module start 'content' 0.00970.0081 781.406389.3672
Module end 'content' 0.01780.0062 870.773430.3047
Script end 0.0240  901.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.006526.9281140.0005
Check MTime0.005121.0180140.0004
Mysql Total
Database connection0.00104.251510.0010
Mysqli_queries0.003514.474730.0012
Looping result0.00000.099110.0000
Template Total0.005824.110.0058
Template load0.005121.111110.0051
Template processing0.00072.971410.0007
Override
Cache load0.004719.387110.0047
General
dbfile0.003715.283280.0005
String conversion0.00000.041640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs