Need help with simple rewrite rule (should't this be easy?)
-
All I need is a rewrite that will change “domainXYZ.com/anyphrase” into “domainXYZ.com”
Here is what I am using:
RewriteCond %{HTTP_HOST} ^domainXYZ\.com RewriteCond %{SCRIPT_FILENAME} !wp-admin RewriteCond %{SCRIPT_FILENAME} !activity RewriteCond %{SCRIPT_FILENAME} !members RewriteCond %{SCRIPT_FILENAME} !groups RewriteRule ^([A-Za-z0-9-]+)/?$ index.php [L]
Notes: I added the above to the top of my .htaccess (in WP root). I am running WP 3.1.3 multisite (subdomains), WP MU Domain Mapping plugin, and buddypress on domainXYZ.com. domainXYZ.com is the mapped domain name, not the actual subdomain.
I was assuming that my rewrite rule would load domainXYZ.com/index.php, which would load the homepage for the wordpress site. However, I get a “page not found” response shown in my buddypress skin (not a full-blown error 404 page).
Thanks to anyone who can help, Joe
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Need help with simple rewrite rule (should't this be easy?)’ is closed to new replies.