2

I have a Joomla! site hosted by Rochen, and am wondering whether it is possible for me to change the structure of urls as follows.

Currently my site (Joomla 3.8) has urls that look like this:

  • www.mysite.com
  • www.mysite.com/index.php/section1
  • www.mysite.com/index.php/section2
  • www.mysite.com/index.php/section3

I would like to change urls to look like this:

  • www.mysite.com
  • section1.mysite.com
  • section2.mysite.com
  • section3.mysite.com

I know how to set up subdomains on Rochen cPanel. Currently each of my subdomains point to the same document root (i.e. public_html), so that the main domain and each subdomain all operate off of a single Joomla! installation and a single database (as desired). The problem is that when I do, users have to log into each subdomain separately. Currently their username/password combinations work for each subdomain, but they have to repeat the logon process for each subdomain. I would prefer for a user to have to login only one time to gain access to the entirety of mysite.com. I guess what I want is to have urls that look like subdomains, but function like it's just one domain (one joomla! installation, one database, single logon).

Any advice on how to do this?

3
  • Sounds like might be a cookie issue. ie, stackoverflow.com/questions/18492576/…
    – Drew G
    Feb 1, 2018 at 22:56
  • Do a search in this site, there are many similar questions with useful answers.
    – FFrewin
    Feb 4, 2018 at 7:37
  • @Mikan do you use that extension with https? thanks
    – mkmi
    Mar 13, 2018 at 16:48

1 Answer 1

1

You can achieve what you need by using Virtual Domains extension.

It is free and it provides Multi-domain capability for Joomla without changing the Joomla core files and tables. Simply register any number of additional available domains/subdomains in the components backend and define their properties.

You can run different web sites from a single Joomla installation with specific templates, home page content and navigation.

You can select a template from VD's Backend for a specific domain. You can filter menu items, define domain specific languages and meta data. VD will create an accesslevel for each domain/subdomain. This will enable you to control all that content that can deal with access levels.

I have used it without any issues for quite some time and under every major J! version. It works just fine in latest Jooomla 3.8 under PHP 7. Highly recommended!

2
  • 1
    As a warning, if you're going to run VD on PHP > 7.1, you'll need to manually install the following fork: github.com/smehrbrodt/virtualdomains/releases (just download the ZIP and manually upload to Joomla) Mar 4, 2019 at 8:13
  • Using this in 2023 I get the "Apache is functioning normally" when I use this component. On Joomla 3.10.11 and with PHP 7.4.. Anyone know why this happens?
    – Kuubs
    Feb 2 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.