RewriteRule

Hello –

I have WPMU configured to use subdomains (name.domain.com) and have used the .htaccess as recommended:

RewriteEngine On

RewriteBase /

#uploaded files

RewriteRule ^(.*/)?files/$ index.php [L]

RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*

RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]

RewriteRule ^(.*/)?avatar/(.*) wp-content/avatar.php?file=$2 [L]

# add a trailing slash to /wp-admin

RewriteCond %{REQUEST_URI} ^.*/wp-admin$

RewriteRule ^(.+)$ $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]

<IfModule mod_security.c>

<Files async-upload.php>

SecFilterEngine Off

SecFilterScanPOST Off

</Files>

</IfModule>

Now, I’ve installed photo software in a subdirectory of my html_root/photo

I want to add a rule that says all should behave as it currently does but if you access a url with /photo in it, to then just pass it through to that directory. so in otherwords, if someone goes to name.domain.com they get their blog, but if they go to domain.com/photo, then they access the index.php in that directory.

Any clues?

Thanks

  • andrea_r
    • The Incredible Code Injector

    Well, on an install I was working on today, it has subdomains and I put a forum in /forum/ and it worked. Didn’t have to alter the rewrite rules to allow for it, it should pass them on thru.

    You don’t have a page slug with the same name do you? Like a page on the main blogs called “photos”?