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.

 

Link to comment
https://forums.phpfreaks.com/topic/281560-redirect-url-to-www/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/281560-redirect-url-to-www/#findComment-1446922
Share on other sites

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.