How to mapped directory to domain.com 11 Years, 11 Months ago
|
Karma: 0
|
Hi I create a site using default freshSlaveDomain template.
So i can access my site in my hosting environment. example: mydomain.com/test1
Now how can i mapped mydomain.com/test1 to clientdomain.com
Thank you
|
|
|
|
|
Re: How to mapped directory to domain.com 11 Years, 11 Months ago
|
Karma: 54
|
The freshSlaveDomain rule is used for website like "domain.com" and NOT for "domain.com/site".
The rule for a website into a sub-directory is for example the "freshSlaveSubdir".
If the "domain.com" is not current master website domain then you have to create a specific JMS template rule that replace the {site_url} keyword by "domain.com" or other kewords (ie. {site_id}}
If you are using a specific domain, ensure that the path on the disk correspond to what you have setup in your cPanel (or other admin tool).
|
|
|
|
|
Re:How to mapped directory to domain.com 11 Years, 11 Months ago
|
Karma: 0
|
Thank you. In my case i want to create website and use multisite as following:
Master website: mydomain.com installed multisite component
create client site at:
mydomain.com/client1
mydomain.com/client2 and so on...
Then i want to map
mydomain.com/client1 to client1domain.com
mydomain.com/client2 to client2domain.com
I did following:
I edit freshSlaveSubdir template rules and edit {site_url} keyword by "domain.com"
Now i have a client site at mydomain.com/client1
But i can't mapped this directory to my client domain at client1domain.com
If you are using a specific domain, ensure that the path on the disk correspond to what you have setup in your cPanel (or other admin tool).
I am not quite sure where i need to add this. I assume in master website server. Do you have any video or tutorial where i can see what i need to do for this. Please let me know.
Thank you.
|
|
|
|
|
Re:How to mapped directory to domain.com 11 Years, 11 Months ago
|
Karma: 54
|
First if you want to have "client1domain.com" then you need to use the rule freshSlaveDomain rule and not the Subdir rule.
Your error is to want create a subdirectory and also want to have a domain.
You need to think in terms of domain that must have a specific location on the disk.
If you are using cPanel admin tool, go in the "Addon Domains" to setup the "document root" with the appropriate directory. Here, if you want to be located in the mydomain.com/client1 then put the appropriate location on the disk.
We do NOT recommend such architecture to avoid duplicate content (domain.com/client1 and client1domain.com) would be identical.
We suggest that you apply the architecture as described in our tutorial video 0.b (slide 21-24) and applied in the freshSlaveDomain rule.
You need that JMS and apache are configured with the same location on the disk.
For the configuration of your apache, see you cPanel (or other admin tool) to configure it. In JMS, see the "deploy folder" field present in the JMS template rule and also in the JMS manage site.
|
|
|
|
|
|