English (United Kingdom)
Jms Multi Site, formerly joomla multisite.
Create, share multiple joomla sites in few clicks !
Message
  • EU e-Privacy Directive

    This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.

    View e-Privacy Directive Documents

Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottomPage: 1
TOPIC: Domain Mapping
#12782
Domain Mapping 7 Years, 1 Month ago Karma: 0
Hi, I'm trying to find out how to setup domain mapping via DNS but without success, I was hoping you could give me instructions on how to map a domain through DNS please.

Thanks
dickon32
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#12791
Re: Domain Mapping 7 Years, 1 Month ago Karma: 54
DNS and apache (or similar) configuration are 2 differents things.

The DNS is used to convert a domain name by its IP.
When you have configured your DNS, you can use the command
> nslookup YOURDOMAIN.COM
and see if you receive the IP

If yes, this means that the DNS is correctly configured.
If the website is not displayed, you also have to check the "apache" configuration.
In general, the configuration of apache is done via a "Control Panel".
With cPanel/WHM, you have to go in the "addOn Domain" or "Subdomain" the relationship between the domain and it location on the disk (document root).
cPanel also do the DNS update for you.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#14288
Re: Domain Mapping 5 Years, 9 Months ago Karma: 0
I could use some help with this, too. I have a slave site for which I want to change the primary domain for. For this post, let's say I have the current domain: legacydomain.com and the newdomain.com.

I added newdomain.com domains to the JMS template for the legacy site alongside the existing legacydomain.com urls.

I also created an AddOn domain called newdomain.com in cPanel and gave it the following path for the Document Root:

/domains/legacydomain/public_html

It set up redirection to newdomain.com/^/site/(.*)$ If I change that redirect to www.legacydomain.com, it still doesn't work.

What do I need to do to get it to display the content of legacydomain.com in newdomain.com?

I can't seem to turn off redirection.

*********** Update: *************

Looks like I was getting a cached version. The changes did work and the legacydomain.com site does display as wanted.

-------

Is this the best way to handle this, if the client actually no longer wants to use the legacydomain.com url, but rather, to do a 301 permanent redirect from the legacydomain.com url to the newdomain.com url?

It's confusing when working in the JMS environment.
azurelink
Expert Boarder
Posts: 87
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2018/07/02 23:15 By azurelink.
The administrator has disabled public write access.
 
#14289
Re: Domain Mapping 5 Years, 9 Months ago Karma: 54
You can NOT used redirection because the redirection change the domain name received by JMS.
The begining was good to just create the Addon Domain for which you give the Document root of the legacay domain.
You just have to update the JMS definition to add the new domain to the definition of the legacy one. So that they will become synonym.

Put the new domain URL as first one in the JMS definition and select "redirect to the first one" radio button.
So that the legacy will be redirected to the first one that is the new domain.
edwin2win
Moderator
Posts: 5370
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