lyceum-users AT lists.ibiblio.org
Subject: Lyceum-users mailing list
List archive
[Lyceum-users] mod_rewrite regular expressions missing leadign slash?
- From: Bryan Thale <bryan.thale AT motorola.com>
- To: lyceum-users AT lists.ibiblio.org
- Subject: [Lyceum-users] mod_rewrite regular expressions missing leadign slash?
- Date: Fri, 27 Oct 2006 10:08:00 -0500
I've just installed Lyceum 0.33 on a RHEL3 system running Apache 2.0.59, PHP 4.3.2, MySQL 4.0.27
I'm trying to run lyceum as the root of a single virtual host. I can get to the portal page, but clicking Login gives me a 404 error. Looking at the rewrite log, it shows it is passing through a request for "/login" which, of course, doesn't exist. Looking at the generated rewrite rules, I don't see how they could possibly be correct.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^profile/? wp-admin/profile.php?%{QUERY_STRING} [L]
RewriteRule ^login/? wp-login.php?%{QUERY_STRING} [L]
RewriteRule ^register/? wp-register.php?%{QUERY_STRING} [L]
Shouldn't there be leading slashes on all those regular expressions and the rewritten requests? That is:
RewriteRule ^/login/? /wp-login.php?%{QUERY_STRING} [L]
The request will always begin with a slash. Won't it? Was I supposed to set WEBROOT to '/' in the wp-config file even though it says "NO TRAILING SLASH" in the file comments? I left it as define ('WEBROOT', '') when I did the install.
TIA,
Bryan.
--
Bryan Thale
Motorola Open Source Technologies, Mobile Devices
bryan.thale AT motorola.com
-
[Lyceum-users] mod_rewrite regular expressions missing leadign slash?,
Bryan Thale, 10/27/2006
- Re: [Lyceum-users] mod_rewrite regular expressions missing leading slash?, Bryan Thale, 10/30/2006
Archive powered by MHonArc 2.6.24.