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: Dynamic DNS
#4790
Dynamic DNS 13 Years, 11 Months ago Karma: 0
Hello

I am trying to make DNS configuration easy with a dynamic A record where all * subdomains are being sent to my domain. This is working great with one exception.

If there is no site the main home page is displayed. As I was looking through the configuration.php this seems to be expected behavior.

Would it be possible to read the url and if there is a WWW default to the home page, otherwise if there is no slave display a 404?

Would you know of a work around for this?

Thanks
Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4805
Re: Dynamic DNS 13 Years, 11 Months ago Karma: 54
NO

The current JMS Multisites definition are:
- If a URL correspond to a slave site domain defined in JMS multisites then this is a slave site
- Otherwise, this is the master (the default).

For your information, the www website can also be a slave site.
If you read our recommendation, in general we present master.domain.com as the master website.
After that the www.domain.com can be defined as a slave site.

Therefore the rule to say that www is the master website is wrong and in general is not recommended.
Perhaps you could review the tutorial video 0.b slide 21-24
www.jms2win.com/tutorial#jms12x-0b
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4808
Re:Dynamic DNS 13 Years, 11 Months ago Karma: 0
Hi Edwin

I think I didn't explain this properly.

Let say I have the following:

example.com is the same as www.example.com

example.com
site1.example.com
site2.example.com
site3.example.com

With a wildcard A record site1, site2, site3 would all resolve correctly, But the problems is site4.example.com, etc... would all default back to the home page.

I would like anything other then 1, 2, 3 to result in a 404

Dave
DaveC
Senior Boarder
Posts: 77
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4810
Re:Dynamic DNS 13 Years, 11 Months ago Karma: 54
I repeat this is not the JMS multiisites processing
As soon as a URL is received and does not match any domain present in the list of slave site then this is the master website that is displayed.

So if site4 is received and is not present in the list of the slave site then JMS Multisites will display the master website.

If you want to do that, you have to implement something yourself to detect that.
Becarefull that this mean that you probably will loose your master website as when a URL is not present in the list of domain, this will provide you a 404 page (no more access to the master).

Nowhere in JMS multiites you define which is the "single" domain that you consider as the master. The definition is "if a URL is not in the list of slave site domain then this is the master".
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