Forums / Setup & design / Pure static HTML frontpage using Rewriterules?

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