Forums / Setup & design / mod_rewrite RewriteRules

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