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?

subdirectory not working if....
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: subdirectory not working if....
#11564
subdirectory not working if.... 10 Years, 8 Months ago Karma: 0
Master site located at
/home/domains/public_html/

Main domain, for instance domain.com

I can create a slave site in subdirectory domain.com/xxxx which can be deployed
/home/domains/public_html/xxxx


Now I want to create another slave site with url domain.com/zzzz which I wan to be deployed to
/home/domains/public_html/sites/zzzz


Settings:
List of domains:
domain.com/zzzz
www.domain.com/zzzz


Site deploed:
/home/domains/public_html/sites/zzzz

Now site has been created but it give 404 error if I browse to

domain.com/zzzz

It would work only if I browse to

domain.com/sites/zzzz

Just cannot figure it out why this happends.

Any help would be really great.
Thanks
amir00251
Fresh Boarder
Posts: 18
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11568
Re: subdirectory not working if.... 10 Years, 8 Months ago Karma: 54
You can NOT mention in your requirement that you want to have
domain.com/zzz that is located in /home/domains/public_html/sites/zzzz
or you have to write domain.com/sites/zzz that is effectivelly located by apache into /home/domains/public_html/sites/zzzz

You are defining a subdirectory of a domain.
So you must respect the location of you domain and after that the subdirectories.

The only thing that you could do is to create 2 subdirectories
domain.com/zzz
that redirect to
domain.com/sites/zzz


Apache can NOT do that.
Only IIS can create virtual directories to setup that a subdirectory is located on another place on the disk.

Your question is not JMS related but related to apache or IIS (HTTP Server related).

Nowhere in your cPanel you have an administration tool that allow creating subdirectory settings.
The only options are subdomains, addon domains or park domains.

So in summary, you can not do that.
This is an apache constrain


The only solution is that you create a .htaccess that modify all the URL by something else but again this is not JMS related.

Apache works at subdomain or domain level.
So once you have the document root that is defined, all the subdirectories are relative to this document root.
edwin2win
Moderator
Posts: 5370
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#11570
Re:subdirectory not working if.... 10 Years, 8 Months ago Karma: 0
Hi Edwin, Thank you for clarification.
amir00251
Fresh Boarder
Posts: 18
graphgraph
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