[BlueOnyx:10278] RewriteRule problem
DD
bqlist at distortal.com
Sat Apr 21 09:21:51 -05 2012
Hi all,
I have a simple rewriterule that for whatever reason is not firing. This is
on 5108R.
In my /etc/httpd/conf/vhosts/siteXX.include file I have:
RewriteEngine On
RewriteRule ^/([a-z\-]+).html$ /index.php?stub=$1
The idea is that a URL such as /hello-world.html becomes
/index.php?stub=hello-world and the content can be pulled from a DB.
I'm getting a 404 for known values of stub in the "blah.html" format URL,
but if I try it directly via "index.php?stub=blah" it's fine.
I've used AllowOverride to move the rule to a .htaccess file in the site's
/web/ folder. I've deleted the site and recreated it, restarted Apache and
eventually the server too, all to no avail.
Other RewriteRules on different sites - more complicated than this one -
work just fine.
When I recreated the site, it was saved as the same SiteID as before.
Any ideas?
Dick Dolby
More information about the Blueonyx
mailing list