Hello, I am new to Joomla. I only started playing with it this week. I have been reading the book Joomla for Dummies by Seamus Bellamy. So far I have installed it locally on my local Macintosh. I plan to install it on a remote host soon.
Anyway, while installing on my local machine I put Joomla in directory joomla. So I access it as http:// localhost/joomla
Like others in this thread, this concerned me. We want the Joomla files in their own directory for neatness because we need to have other directories and files in the root or it will be just a complete mess. But we also want the Joomla website to be at the root http:// localhost/ (or http://here-look.com/
when it is on the remote host) so that we can tell people to just go to http://here-look.com
Instead of messing with .htaccess files, I put an index.php file in root that has a require()
satement that calls joomla/index.php
/* Short and sweet */
This is like an include()
statement and causes php to evaluate the file. When I accessed http:// localhost/ it got all the menus and such, but none of the formatting. After reading this thread, I edited my joomla/configuration.php file to define the config variable $live_site
public $live_site = 'http://localhost/joomla';
This seems to work.
1. Joomla is in its own directory, joomla
2. I can access the website as http:// localhost/
3. The address bar does show http:// localhost/joomla/... for pages, but I don't see that as a problem
I haven't tried this yet on a remote host. Does anybody see a drawback to this approach? It seems like a very simple and easy solution. Also, it works if you have a webhost that doesn't allow users to have .htaccess files