[BlueOnyx:08558] Re: apache rewrite rules

Ernie ernie at info.eis.net.au
Thu Sep 22 17:25:46 -05 2011


Have you set up the .include file for they particulat vsite in
/etc/http/conf/vhosts first to allow overides?

eg:

<Directory /home/.sites/106/site3/web>
 AllowOverride All
 RewriteEngine On

</Directory>


- Ernie.


> 
> 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
> _______________________________________________
> Blueonyx mailing list
> Blueonyx at mail.blueonyx.it
> http://mail.blueonyx.it/mailman/listinfo/blueonyx
> 


-- 
"I Ping therefore I am."



More information about the Blueonyx mailing list