Changeset 711
- Timestamp:
- 05/13/06 04:03:58 (2 years ago)
- Files:
-
- trunk/src/lib/wp-includes/classes.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/lib/wp-includes/classes.php
r689 r711 1409 1409 1410 1410 $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/ 1412 1412 1413 1413 if(SUBDOMAINS) 1414 1414 $rules .= " 1415 1415 1416 RewriteCond %{REQUEST_FILENAME} !-f 1416 1417 RewriteCond %{REQUEST_FILENAME} !-d … … 1429 1430 RewriteCond %{REQUEST_FILENAME} !-d 1430 1431 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(.*) 1434 1435 1435 1436 RewriteRule (.*) /index.php?$1 [L,QSA]"; 1436 1437 1437 else $rules .= "1438 else $rules .= " 1438 1439 1439 1440 RewriteCond %{REQUEST_FILENAME} !-f 1440 1441 RewriteCond %{REQUEST_FILENAME} !-d 1441 1442 1442 RewriteRule ^profile/? wp-admin/profile.php?%{QUERY_STRING} [L] 1443 1443 RewriteRule ^login/? wp-login.php?%{QUERY_STRING} [L] … … 1446 1446 RewriteCond %{REQUEST_FILENAME} !-f 1447 1447 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] 1451 1449 1452 1450 RewriteCond %{REQUEST_FILENAME} !-f 1453 1451 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 1460 1462 1461 1463 $rules .= "\n";
