Forums / Setup & design / mod_rewrite RewriteRules

"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".

mod_rewrite RewriteRules

Author Message

Andrey Astakhov

Wednesday 21 March 2007 3:22:47 am

Is it possible to set up rewrite rules for Exponential 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