Joomla Tip – Installing in a Subdirectory

Our district has been working on redesigning and updating Joomla to the latest version for our main site. One of the problems we ran into was that we wanted to install the Joomla site to a subdirectory off of http://www.saisd.net–so we wouldn’t have joomla directories and files scattered at the root–but still have the site show up when you go to http://www.district.net

For awhile, I thought I had to specify an absolute path of some sort in the configuration.php file or in the index.php file. But I couldn’t find anything–aside from helpful info on how to find your absolute path out using a php script–that would allow you to do that in Joomla.

Then, I remembered that in setting up WordPress in a subdirectory (http://intouch.saisd.net is a WP install with wordpress in a subdirectory at http://intouch.saisd.net/intouchwp) there were some instructions…I’m grateful to the WordPress folks for documenting this!

To get it to work for Joomla, I simply adapted the PHP from the WP index.php for the Joomla site, and voila!

here’s the code for the index.php page that pulls in the directory.

Where “main” is the subdirectory with Joomla in it. The site hasn’t gone live yet for the world, but when it does, it should be a simple matter of renaming the alternateindexfilename.php file to index.php).

This was pure luck…and it showed me I need to go read up on PHP!!

In the meantime, can anyone think of why doing this with a Joomla install would be problematic? I’d appreciate any constructive criticism of this approach.


var addthis_pub=”mguhlin”;


Subscribe to Around the Corner-MGuhlin.org


Be sure to visit the ShareMore! Wiki.


Everything posted on Miguel Guhlin’s blogs/wikis are his personal opinion and do not necessarily represent the views of his employer(s) or its clients. Read Full Disclosure


Discover more from Another Think Coming

Subscribe to get the latest posts sent to your email.

4 comments

  1. Joomla is in fact a simple substance administration framework. This is something that would be helpful for both fledgling and propelled clients. Figuring its upsides and downsides, you will just most likely wind up with a bigger number of preferences as opposed to its pitfalls.Joomla Tutorials

  2. Joomla is in fact a simple substance administration framework. This is something that would be helpful for both fledgling and propelled clients. Figuring its upsides and downsides, you will just most likely wind up with a bigger number of preferences as opposed to its pitfalls.Joomla Tutorials

Leave a comment