On Thu, 4 Oct 2007, Christian Folini wrote:

> I am missing the context. :)
>
> Please provide your whole config. I think it has to
> do with the structure of your config file.

This is the .htaccess file:

Options +FollowSymLinks +ExecCGI

<IfModule mod_rewrite.c>
  RewriteEngine On

  # redirect creation and editing actions
  RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
  RewriteCond %{REQUEST_URI} ^/create$
  RewriteRule (.*) http://edit.example.com/create [R,L]

  RewriteCond %{HTTP_HOST} ^www\.example\.com [NC]
  RewriteCond %{REQUEST_URI} ^/edit/(.*)$
  RewriteRule (.*) http://edit.example.com/$1 [R,L]

  # likewise, redirect back for actions that are NOT edit/create
  # this doesn't work
  #RewriteCond %{HTTP_HOST} ^edit\.example\.com [NC]
  #RewriteCond %{REQUEST_URI} !^/create$
  #RewriteCond %{REQUEST_URI} !^/edit/(.*)$
  #RewriteRule (.*) http://www.example.com/$1 [R,L]

  # for TinyMCE and images folder
  RewriteRule ^js/tiny_mce/plugins/imagemanager/(.*)$ - [L]
  RewriteRule ^images\/(.*)$ - [L]

  RewriteCond %{REQUEST_URI} \..+$
  RewriteCond %{REQUEST_URI} !\.html$
  RewriteRule .* - [L]

  # we check if the .html version is here (caching)
  RewriteRule ^$ index.html [QSA]
  RewriteRule ^([^.]+)$ $1.html [QSA]
  RewriteCond %{REQUEST_FILENAME} !-f

  # no, so we redirect everything else to our front web controller
  RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

# big crash from our front web controller
ErrorDocument 500 "<h2>Application error</h2>application failed to start 
properly"
ErrorDocument 401 /error/401.html



-- 
Aj.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to