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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.