Log in with username/password: lyceum/lyceum

Changeset 711

Show
Ignore:
Timestamp:
05/13/06 04:03:58 (2 years ago)
Author:
jjb
Message:

ticket:370

BAM. BAM.

thanks to Will Mitchell of http://jonx.com/

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/lib/wp-includes/classes.php

    r689 r711  
    14091409     
    14101410      $rules = "\n\tRewriteEngine On\n"; 
    1411       $rules .= "\tRewriteBase $site_root"; //do we need this? 
     1411      $rules .= "\tRewriteBase $site_root"; // I'm pretty sure we need this for cases where lyceum is installed in subdirectories, i.e. http://example.com/apps/lyceum/ 
    14121412 
    14131413      if(SUBDOMAINS) 
    14141414         $rules .= " 
     1415 
    14151416   RewriteCond %{REQUEST_FILENAME} !-f 
    14161417   RewriteCond %{REQUEST_FILENAME} !-d 
     
    14291430   RewriteCond %{REQUEST_FILENAME} !-d 
    14301431 
    1431    ### do we need these two conditions? ### 
    1432  RewriteCond %{REQUEST_URI} !^(.+)/admin(.*) 
    1433  RewriteCond %{REQUEST_URI} !^(.+)/index.php(.*) 
     1432   ### I'm pretty sure we'll never need these -jjb ### 
     1433#   RewriteCond %{REQUEST_URI} !^(.+)/admin(.*) 
     1434#   RewriteCond %{REQUEST_URI} !^(.+)/index.php(.*) 
    14341435 
    14351436   RewriteRule (.*) /index.php?$1 [L,QSA]"; 
    14361437 
    1437     else $rules .= " 
     1438       else $rules .= " 
    14381439 
    14391440   RewriteCond %{REQUEST_FILENAME} !-f 
    14401441   RewriteCond %{REQUEST_FILENAME} !-d 
    1441  
    14421442   RewriteRule ^profile/? wp-admin/profile.php?%{QUERY_STRING} [L] 
    14431443   RewriteRule ^login/? wp-login.php?%{QUERY_STRING} [L] 
     
    14461446   RewriteCond %{REQUEST_FILENAME} !-f 
    14471447   RewriteCond %{REQUEST_FILENAME} !-d 
    1448  
    1449    RewriteRule ^([A-Za-z0-9_-]+)/admin/?$ wp-admin/index.php?b=$1& 
    1450    RewriteRule ^([^/]+)/admin/?([^/]+php)\??(.*) wp-admin/$2?b=$1&%{QUERY_STRING} [L] 
     1448   RewriteRule ^([^/]+)/admin/?$ wp-admin/index.php?b=$1& [L] 
    14511449 
    14521450   RewriteCond %{REQUEST_FILENAME} !-f 
    14531451   RewriteCond %{REQUEST_FILENAME} !-d 
    1454  
    1455    ### do we need these two conditions? ### 
    1456    RewriteCond %{REQUEST_URI} !^(.+)/admin(.*) 
    1457    RewriteCond %{REQUEST_URI} !^(.+)/index.php(.*) 
    1458  
    1459    RewriteRule ^([A-Za-z0-9_-]*)/? {$site_root}{$this->index}?b=$1 [L,QSA]"; 
     1452   RewriteRule ^([^/]+)/admin/?([^/]+php)\??(.*) wp-admin/$2?b=$1&%{QUERY_STRING} [L] 
     1453 
     1454   RewriteCond %{REQUEST_FILENAME} !-f 
     1455   RewriteCond %{REQUEST_FILENAME} !-d 
     1456 
     1457   ### I'm pretty sure we'll never need these -jjb ### 
     1458#  RewriteCond %{REQUEST_URI} !^(.+)/admin(.*) 
     1459#  RewriteCond %{REQUEST_URI} !^(.+)/index.php(.*) 
     1460 
     1461   RewriteRule ^([^/]+)/? {$site_root}{$this->index}?b=$1 [L,QSA]";//probably should remove site_root -jjb 
    14601462 
    14611463      $rules .= "\n"; 
Log in with username/password: lyceum/lyceum