The MU forums have moved to WordPress.org

Subdomain Pages Redirecting (1 post)

  1. aresk74
    Member
    Posted 14 years ago #

    I am having an issue with a site:

    Worpdress MU 2.9.2 installed in root, with subdomains.

    Subdomain xxx.mysite.com looks just fine: images, css, everything.

    However, subdomain internal pages:

    xxx.mysite.com/my-page-name.html

    gets redirected to the main site

    mysite.com

    I think it is probably an htaccess issue, or maybe not, in any case, this is the htaccess I am using

    AddType application/x-httpd-php5 .php
    
    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]
    
    # 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>

About this Topic

  • Started 14 years ago by aresk74