Forums / General / Displaying static HTML files in eZpublish

Displaying static HTML files in eZpublish

Author Message

Krzysztof Kozlowski

Wednesday 01 June 2005 4:42:30 am

Hello

Is it possible (and how to do it) to display static HTML pages in eZPublish site ? I have a lot of HTML pages so I can't put them into database.

In Mambo Open Source there is a component "StaticXT" which serves HTML and PHP files. Is there something like this for eZpublish ?

P.S. I haven't found anything in http://ez.no/community/contribs .

Krzysiek

kracker (the)

Wednesday 01 June 2005 5:19:28 am

You may always put your static html files in a subdirectory, say example.com/static/

Then add a mod_rewrite in your apache vhost configuration or .htaccess rules to allow access to files inside this subdirectory.

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/static*
RewriteRule !\.(gif|ico|jpe?g|png|css|js)|var(.+)storage.pdf(.+)\.pdf$ index.php

If you must include html content inside of an object (article / product / etc) you may use this contribution.
<i>http://www.ez.no/community/contribs/hacks/embedded_html_for_literal_tag</i>

//kracker

<i>Future of Music Conference : DMCA&u.mp3</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/