Jump to content

Recommended Posts

Hi,

I am using wordpress with multisite and also using domain mapping plugin.

 

I want my domain redirect to www for examples

 

My domain is abc.com when any one enter abc.com this automattic redirects to www.abc.com this is working fine.

My issue is

When I mapped some other domain to my created site with multisite plugin that not redirecting to with www

 

Can any one help me.

 

This is how it is done on the htaccess file:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^yourdomain.com

RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]

 

More information relates to wordpress multisite here

http://wordpress.org/support/topic/non-www-to-www-301-redirect-for-multisite

 

Note:you should only edit the htaccess file if you have ftp access , one mistake and your site will go down

Which can be easily fixed via ftp even if the site is down

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.