You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Leo Simons <le...@apache.org> on 2003/11/03 11:38:15 UTC
wiki rewrite rule failures?
Hi gang,
requesting http://wiki.apache.org/foo-data/style
results in:
[Mon Nov 03 02:20:54 2003] [error] [client 130.89.169.128] File does not
exist: /x1/www/wiki.apache.org/data/x
it seems some of the rewrite rules are wrong...I'm by no means an expert
on mod_rewrite, but I took a look at the docs anyway...here's what we
have currently:
RewriteEngine on
# Allow for things like /favicon.ico and related file-only-like
# resolve to the docroot
RewriteCond
/x1/www/wiki.apache.org/share/docroot/%{REQUEST_FILENAME} -F
RewriteRule ^/(.*)$ /x1/www/wiki.apache.org/share/docroot/$1 [L]
this seems to work
# Redirect to the general wiki if no wiki name was specified
RewriteRule ^/$ /general [R]
this seems to work (but the wiki 'general' does not currently exist)
# This URL is password protected to allow for privileged actions
RewriteRule ^/([a-zA-Z]+)-admin(.*)
/x1/www/wiki.apache.org/data/$1/cgi-bin/privileged/moin.cgi$2
this doesn't work... (#1)
# This is the local data url for the wiki
RewriteRule ^/([a-zA-Z]+)-data(.*)
/x1/www/wiki.apache.org/data/$1/data/$2
and this doesn't work either (#2)
# This is the normal wiki access
RewriteRule ^/([a-zA-Z]+)(.*)
/x1/www/wiki.apache.org/data/$1/cgi-bin/moin.cgi$2
but this one does (#3). Now, could it be the case that the work done by
#1 and #2 is mangled by #3? If so, I think #1 and #2 need the [L]
modifier added. Does that sound right?
cheers,
- Leo
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org
Re: wiki rewrite rule failures?
Posted by Leo Simons <le...@apache.org>.
wrong list, please ignore <blush/>
Leo Simons wrote:
> Hi gang,
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org