Forums / General / Displaying static HTML files in Exponential

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Displaying static HTML files in Exponential

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 Exponential 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 Exponential ?

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

Krzysiek

kracker

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/