Forums

wordpress MU redirect (2 posts)

  1. abir1006
    Member
    Posted 1 year ago #

    Hello,

    I have installed the MU blog with non www url, But I want now the blog should redirect to domain.com to http://www.domain.com.

    Here is my .htaccess code :

    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>

    Any body have any ideas ?

    Thanks

  2. Andrea_r
    team pirate
    Posted 1 year ago #

    Note your htaccess code has no lines about www, so it;s not in there. ;)

    Go through your wp-config file. Add the www.
    Go into your database via phpmyadmin. Add the www in all instances you can find.

Topic Closed

This topic has been closed to new replies.

About this Topic