mod_rewrite RewriteRules

Author Message

Andrey Astakhov

Wednesday 21 March 2007 3:22:47 am

Is it possible to set up rewrite rules for ez Publish in order to map link
[1] http://mylayout.mydomain.com/
to
[2] http://www.mydomain.com/layout/set/mylayout
?

I tried

RewriteCond %{HTTP_HOST} ^mylayout\..*
RewriteRule .* index.php/layout/set/mylayout/ [L] 

but it doesn't work: i see "module not found" page.

Karl Latiss

Wednesday 21 March 2007 4:08:55 am

I think you are missing the initial slash in the RewriteRule

RewriteCond %{HTTP_HOST} ^mylayout\..*
RewriteRule .* /index.php/layout/set/mylayout/ [L]

Atvert Systems
http://www.atvert.com.au

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 18 2025 19:10:05
Script start
Timing: Jan 18 2025 19:10:05
Module start 'layout'
Timing: Jan 18 2025 19:10:05
Module start 'content'
Timing: Jan 18 2025 19:10:05
Module end 'content'
Timing: Jan 18 2025 19:10:05
Script end

Main resources:

Total runtime0.0196 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.0469152.6250
Module start 'layout' 0.00560.0035 741.671939.4453
Module start 'content' 0.00910.0081 781.117289.3359
Module end 'content' 0.01710.0023 870.453130.3047
Script end 0.0194  900.7578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.9714140.0002
Check MTime0.00126.0866140.0001
Mysql Total
Database connection0.00052.703810.0005
Mysqli_queries0.003417.210430.0011
Looping result0.00010.536410.0001
Template Total0.00189.010.0018
Template load0.00105.037110.0010
Template processing0.00083.926510.0008
Override
Cache load0.00073.420610.0007
General
dbfile0.00168.176180.0002
String conversion0.00000.035440.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