| Wordpress MU and jdM's rewrite of WP
|
Ahkamden

msg:4179581 | 3:37 am on Jul 31, 2010 (gmt 0) | I was hoping jd may be able to provide some insight on the new code they tell you to add to make WP 3.0.1 a "network" of blogs, and if/how it interferes with your writing here: [webmasterworld.com...] I just enabled network on 3.0.1 and it said to add this to htaccess:
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L]
# uploaded files RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule . index.php [L] This is a complete new install in my case. But I've used your htaccess info on some other WP sites, and if it doesn't interfere here would like to use it again. Or hoping you can give general insight to what they're saying we do with our htaccess. Regex is hard for me to grasp.
|
jdMorgan

msg:4179586 | 4:08 am on Jul 31, 2010 (gmt 0) | Well again, they're checking almost all requests for 'file exists' thus potentially beating on the disk and slowing requests on busy sites. The same 'tweak' as discussed in the previous thread cited above would look like this with the new code:
RewriteEngine On RewriteBase / # # Skip all of the following rules if /index.php is requested RewriteRule ^index\.php$ - [L] # # uploaded files RewriteRule ^files/(.+)$ wp-includes/ms-files.php?file=$1 [L] # # Skip the rewrite to WP if the request is for a common resource type that WP # cannot generate or if it resolves to a physically-existing file or directory RewriteCond %{REQUEST_URI} (\.(gif|jpe?g|png|ico|css|js)|^/|^/robots.txt|/sitemap\.xml)$ [OR] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] # Otherwise rewrite all remaining non-blank requests to the WP script RewriteRule . index.php [L]
But if you're not motivated to study-up on regular expressions, just use their new code as-is and don't worry about modifying it unless your site gets really slow. I do not advise using *any* modified server configuration code if you do not understand it completely -- especially code found posted on-line. Jim
|
Ahkamden

msg:4179974 | 11:49 pm on Jul 31, 2010 (gmt 0) | Thanks Jim! It's definitely appreciated. And outside of here, your summation in supporters forum, and your past help with other questions I've asked I wouldn't.
|
|
|