akhilesh1010 Posted August 26, 2013 Share Posted August 26, 2013 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. Quote Link to comment https://forums.phpfreaks.com/topic/281560-redirect-url-to-www/ Share on other sites More sharing options...
molossus Posted August 27, 2013 Share Posted August 27, 2013 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 Quote Link to comment https://forums.phpfreaks.com/topic/281560-redirect-url-to-www/#findComment-1446922 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.