Forum Moderators: phranque
RewriteEngine On
RewriteBase /
#uploaded files
RewriteCond %{REQUEST_URI}!^/gallery/files/
RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L]
#RewriteRule ^(.*/)?files/$ index.php [L]
# Rewrite index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php¦html?)\ HTTP/
RewriteRule ^index\.(php¦html?)$ [domain.com...] [R=301,L]
# Rewrite non www to www
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule (.*) [domain.com...] [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
I am using plesk, so subdomains are not associated with folders, they are separate domains.
Any suggestions?