[URL Rewriting] *.html

Author Message

Sébastien Morel

Tuesday 18 July 2006 8:32:12 am

Hello,

I have configured the URL rewrite to delete the index.php. in the urls of my site.

RewriteEngine On
        Rewriterule ^/var/storage/.* - [L]
        RewriteRule ^/aide-creation-entreprise/.* - [L]
        Rewriterule ^/var/[^/]+/storage/.* - [L]
        RewriteRule ^/var/cache/texttoimage/.* - [L]
        RewriteRule ^/var/[^/]+/cache/texttoimage/.* - [L]
        Rewriterule ^/design/[^/]+/(stylesheets|images|javascript)/.* - [L]
        Rewriterule ^/share/icons/.* - [L]
        Rewriterule ^/tous_nos_services/les_services_en_ligne/opportunites_d_affaires_partenariats/.*$ - [L]
        Rewriterule ^/entrepreneurs_porteurs_de_projets/gerer/nos_conseils/acces_aux_grands_comptes/(.*)php$ - [L]
        Rewriterule (.*).(xml|htm|html|XML)$ - [L]
        Rewriterule ^/extension/[^/]+/design/[^/]+/(stylesheets|images|javascripts?)/.* - [L]
        Rewriterule ^/packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
        RewriteRule .* /index.php

However, today, I must define a rules as :

 RewriteRule (.*)/(.*).html$ /folder1/folder2?l=fr&q=$2 [L]

But this rules doesn't work, because EzPublish seems to need that the REQUEST_URI = /folder1/folder2 for send the good content.

I want to have the URL in "folder/rewrite.html" in the URL of my browser and receive the content of /folder1/folder2 (with a QUERY STRING variable)

EzPublish its based on the REQUEST_URI, how resolve my problem ?

Thanks

Seb

--
eZ c'est plus fort que toi !
http://www.ez-france.org
http://blog.plopix.net
@Novactive (http://www.novactive.com)

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 31 2025 05:58:48
Script start
Timing: Jan 31 2025 05:58:48
Module start 'layout'
Timing: Jan 31 2025 05:58:48
Module start 'content'
Timing: Jan 31 2025 05:58:48
Module end 'content'
Timing: Jan 31 2025 05:58:48
Script end

Main resources:

Total runtime0.0162 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.0049 588.0313151.1953
Module start 'layout' 0.00490.0026 739.226636.6172
Module start 'content' 0.00750.0075 775.843890.2500
Module end 'content' 0.01490.0012 866.093829.9922
Script end 0.0162  896.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.9331140.0002
Check MTime0.00116.8657140.0001
Mysql Total
Database connection0.00063.713810.0006
Mysqli_queries0.002615.867030.0009
Looping result0.00000.092710.0000
Template Total0.00095.810.0009
Template load0.00084.633010.0008
Template processing0.00021.154610.0002
Override
Cache load0.00053.226910.0005
General
dbfile0.003018.466080.0004
String conversion0.00000.057440.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