[BlueOnyx:08544] apache rewrite rules

Maurice de Laat mdlaat at muisnetwerken.nl
Thu Sep 22 07:43:36 PET 2011


Hi,

I am preparing a migration from bluequartz to blueonyx (5107R).

I have a backup from the raqbackup script and restored it to a test 
server. I now see a (for me) weird thign with rewriterules.

P.e. there is a wordpress site in a /web/blog/ directory.
Wordpress placed a .htaccess in the /web directory. Among other things, 
this made sure that a user surfing to http://www.domainname.com/ was 
silently being redirected to wordpress homepage 
http://www.domainname.com/blog/index.php

The .htaccess looks like this:
ErrorDocument 404 /blog/404-not-found
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

However, if I browse to http://www.domainname.com/ I just see the 
directory listing of /web instead of being redirected to /blog/index.php

The .htaccess is being read by apache, because if I add a invalid command, 
apache gives an error when surfing to http://www.domainname.com/

Why does this rewriterule works on the old bluequartz, but not on the new 
blueonyx?

Thanks
-- 
Maurice de Laat



More information about the Blueonyx mailing list