Forum Moderators: phranque
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]
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]