Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
English (United Kingdom)
Welcome, Guest
Please Login or Register.    Lost Password?

www.domain.com redirect 301 to domain.com
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: www.domain.com redirect 301 to domain.com
#3610
www.domain.com redirect 301 to domain.com 2 Years, 2 Months ago Karma: 0
Hi:

How can I make this?:

master.com (master site)
slave.com (master replic)

www.slave.com -> redir 301 to -> slave.com

Thanks
iqingenieros
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
iQ Ingenieros
The administrator has disabled public write access.
Desarrollo de software y consultoría informática
 
#3611
Re:www.domain.com redirect 301 to domain.com 2 Years, 2 Months ago Karma: 0
I found the solution, It is only necessary to put this code:

RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC]
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]

in the main .htaccess file just after "RewriteEngine On"

ATENTION: the redirection will be done for all domains
iqingenieros
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
iQ Ingenieros
The administrator has disabled public write access.
Desarrollo de software y consultoría informática
 
#3612
Re:www.domain.com redirect 301 to domain.com 2 Years, 2 Months ago Karma: 42
NO.

You just have to defined in JMS that both www.slave.com and slave.com are synonym in the list of domains.

Site ID = xxxx
list of domain = www.XXXX.com
XXXX.com
edwin2win
Moderator
Posts: 4105
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop
2Win, Multisite(s) are trademarks of Edwin2Win.
Joomla