Skip to Content.
Sympa Menu

lyceum-dev - [Lyceum-dev] mod_rewrite problems

lyceum-dev AT lists.ibiblio.org

Subject: Lyceum-dev mailing list

List archive

Chronological Thread  
  • From: John Joseph Bachir <jjb AT ibiblio.org>
  • To: lyceum-dev AT lists.ibiblio.org
  • Subject: [Lyceum-dev] mod_rewrite problems
  • Date: Wed, 12 Apr 2006 14:11:02 -0400 (EDT)

Greetings. I'm having a problem with some mod_rewrite rules that some of y'all might be able to help me with.

I am trying to get the import scripts to work. The import scripts are fed through admin.php. The problem is that whenever I try to his admin.php:

http://example.com/slug/admin/admin.php?import=rss

mod_rewrite applies its rules to this script. from the rewrite log:

/Users/john/Sites/lyceum/] rewrite wp-admin/admin.php ->
wp-admin/.php?b=wp-admin&b=j2Blog_2

now, i thought i had properly set mod_rewrite to COMPLETELY IGNORE requests for files that actually exist in the file system:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

Below is the entire .htaccess file. Please let me know if you have any insights.

John
----
aim/yim/msn/jabber.org: johnjosephbachir
713.494.2704
irc://irc.freenode.net/lyceum
http://lyceum.ibiblio.org/
http://blog.johnjosephbachir.org/

---------------------
# BEGIN Lyceum

RewriteEngine On
RewriteBase /~john/lyceum/

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]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^([A-Za-z0-9_-]+)/admin/?$ wp-admin/index.php?b=$1& [L]
RewriteRule ^([A-Za-z0-9_-]+)/admin/?([^/]+php)\??(.*) wp-admin/$2?b=$1&%{QUERY_STRING} [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

### do we need these two conditions? ###
RewriteCond %{REQUEST_URI} !^(.+)/admin/(.*)
RewriteCond %{REQUEST_URI} !^(.+)/index.php(.*)

RewriteRule ^([A-Za-z0-9_-]*)/? /~john/lyceum/index.php?b=$1 [L,QSA]

# END Lyceum




  • [Lyceum-dev] mod_rewrite problems, John Joseph Bachir, 04/12/2006

Archive powered by MHonArc 2.6.24.

Top of Page