| Web Hosting Tutorials Feel free to browse or contribute. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread |
|
|
#46 (permalink) | |
|
\ (^_^) /
Super #1
Joined in Jan 2005
Lives in Albany, N.Y.
1,599 posts
Gave thanks: 83
Thanked 33 times
|
Quote:
|
|
|
|
|
|
|
#49 (permalink) |
|
Registered User
Comfy Contributor
|
OK, so I decided to handle all my personal sites with it.
What do I actually have to do? I should email support and ask for wildcard domains on iva-is.me AND this, right? Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Lock WPMu out of the following subdomain directories...
# These occur before the final rewrite of www.domain.tld to domain.tld
# which is my preference on how the domain is branded
RewriteCond %{HTTP_HOST} forum.benefact.org
RewriteCond %{REQUEST_URI} !forum/
RewriteRule ^(.*)$ forum/$1 [L]
# Rewrite www.benefact.org to benefact.org with a 301
RewriteCond %{HTTP_HOST} ^www.(.*) [NC]
RewriteRule ^(.*) http://%1/$1 [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]
#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
</IfModule>
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|