Joomla! Discussion Forums



It is currently Thu Nov 26, 2009 8:36 pm (All times are UTC )

 


Forum rules

Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 26 posts ] 
Author Message
Posted: Sat Oct 15, 2005 4:23 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
i have put all joomla files and folders in a folder in my root directory called joomla.
how do i make it so when someone accesses my site (i.e. http://www.mysite.com) it goes to the joomla folder, but doesnt show it as http://www.mysite.com/joomla?
is there something i need to put in the .htaccess file?

_________________
http://www.persianari.com


Last edited by Anonymous on Wed Dec 07, 2005 8:33 am, edited 1 time in total.

Top
   
 
Posted: Sat Oct 15, 2005 4:49 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sat Sep 17, 2005 1:31 pm
Posts: 7
you can use the meta refesh code..

what you need to to is to create a file called index.html or index.php in your rooot folder and use the following code in btn the head code..



or



Explanation:

Tells the browser to load http://www.mysite.com/ 10 seconds after the current document has finished loading. Not all browsers support this, so authors should provide an alternate means of moving to the new page where necessary. The Refresh header is sometimes used for "splash screens" or when a page has moved, but the technique is not very effective since users may not even be looking at the window that is to be refreshed and since it messes up the user's history on many browsers. Some search engines penalize pages that use a Refresh of a few seconds or less.

_________________
Regards, n4tec
http://www.n4tec.com


Top
  E-mail  
 
Posted: Sat Oct 15, 2005 5:18 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
thanks for your reply, but i wasnt looking for this method.
im looking at making the joomla folder the default web folder, so when you go to http://www.mysite.com it goes staright to the joomla folder.
i remeber seeing how this was done somewhere, but i cant find it.
can one else who has done this or knows how?

_________________
http://www.persianari.com


Top
   
 
Posted: Sat Oct 15, 2005 6:04 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 2:26 am
Posts: 1808
Location: Lancaster, Lancashire, United Kingdom
The most efficient way of achieving this is just to move all of your files and folders up one level (out of the /joomla/ sub folder) and adjust the settings in configuration.php so that your joomla script is your default site.

You could use a .htaccess file to rewrite ALL urls to yoursite.com/ to yoursite.com/joomla invisibly but this is more server intensive. It would also complicate things if you wanted to use Search Engine Friendly (SEF) Urls.

Dean.

_________________
Dean Marshall - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/


Top
   
 
Posted: Sat Oct 15, 2005 6:10 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
i recall seeing somewhere that you can somehow, by editing the .htaccess file, allow a directory (such as the joomla folder) to act as the main root. so when some goes to http://www.mysite.com it will actually show the url http://www.mysite.com, but would get the files from the joomla folder.

is this possible or was i just dreaming?

_________________
http://www.persianari.com


Top
   
 
Posted: Sat Oct 15, 2005 6:17 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Fri Aug 19, 2005 2:26 am
Posts: 1808
Location: Lancaster, Lancashire, United Kingdom
You can certainly do that in the httpd.conf file - the apache server configuration file, I don't think you can do the same in .htaccess (but this is not my field). Mod_Rewrite would simulate this - but I believe it is 'expensive' in terms of server CPU cycles.

Is there any reason you can't simply move the files out of the /joomla folder?

Dean.

_________________
Dean Marshall - Mambo and Joomla Consultant
Dean Marshall Consultancy Limited - http://www.deanmarshall.co.uk/


Top
   
 
Posted: Sat Oct 15, 2005 6:20 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
my root folder has many folders and above 5 files in it by default (from the web hosting company).
i just wanted to make it more clear what folder/files were from Joomla.
but if its easier to upload joomla to root then i will do so.

_________________
http://www.persianari.com


Top
   
 
Posted: Sat Dec 03, 2005 3:55 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Dec 02, 2005 1:04 pm
Posts: 8
Hello persianari

I do have the exact same problem and also hunting down the solution,
have you been able to solve this without dumping the joomla folders and files in root?
If yes, could you share the way you did it.

cheers
marcel


Top
   
 
Posted: Sat Dec 03, 2005 12:08 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
unfortunately no.
i have however found others in the same or similar situation:

http://forum.joomla.org/index.php/topic,22290.0.html

http://forum.joomla.org/index.php/topic,22018.0.html

if anyone could help it'll be great!

also if you have multiple domains, how do you make them all work on the same Joomla! installation so it works with each individual domain name?
i.e.
if you have domain.com, domain.net & domain.org
and if anyone goes to either of these sites they get the same website but with the domain that they typed in.
e.g.
if you use domain.com your site will be like domain.com/index.php
of if you used domain.org the site will be domain.org/index.php

_________________
http://www.persianari.com


Top
   
 
Posted: Mon Dec 05, 2005 3:26 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
and here's another one:

http://forum.joomla.org/index.php/topic,22381.0.html

_________________
http://www.persianari.com


Top
   
 
Posted: Mon Dec 05, 2005 5:21 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 29, 2005 2:09 pm
Posts: 9
On my intra-company site I placed an index.php at the root with this code:

header("Location: http://www.yoursitehere.com/joomla/");
?>

It is much faster than a meta refresh


Top
   
 
Posted: Mon Dec 05, 2005 5:32 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
doesn't this just redirect?
i.e. if you enter in http://www.domainname.com it will go to http://www.domainname.com/joomla/ but will it show
http://www.domainname.com
OR
http://www.domainame.com/joomla ??

_________________
http://www.persianari.com


Top
   
 
Posted: Mon Dec 05, 2005 7:10 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 29, 2005 2:09 pm
Posts: 9
Yes all it does is redirect.  But the only thing my users have to remember is the main site name and it redirects them to the Joomla folder.  And the PHP page makes it almost instant. But it does append the /joomla at the end. 

Thus my folder structure is unchanged and also I host other folders at the main site for other items like the photo gallery and some internal web apps that we have developed.

If you tried to make the Joomla folder the main web root then you would be limiting yourself because the entire structure would have to be underneath the Joomla install at that point.  I don't know of any way to achieve what you are wanting to do without careful planning from the start.  There may be a way to do it in the httpd.conf file but I try not to mess to much with it because invariably my change will break something else.


Last edited by BeanDip on Mon Dec 05, 2005 7:12 pm, edited 1 time in total.

Top
   
 
Posted: Mon Dec 05, 2005 7:15 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Mon Aug 29, 2005 2:09 pm
Posts: 9
I had another thought but I don't know how to implement it. 

What if at your main site you had a page with just a frame that loads the Joomla site inside?

That way it would only show the main site name no matter where you are at in Joomla what as long as you don't leave the frame. 


Top
   
 
Posted: Mon Dec 05, 2005 7:24 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 12:38 am
Posts: 11207
Location: Sydney - Australia
Why not just move all you files up to the 'root' folder? Seems the simplest way to me.

_________________
Brad Baker - Follow me on Twitter @xyzulu @rochenhost
http://www.rochen.com - Joomla! Hosting, the correct way.
http://www.joomlatutorials.com <-- Joomla Help
..somewhere in this hospital the anguished oink of a pig man cries out for help..


Top
  E-mail  
 
Posted: Mon Dec 05, 2005 7:56 pm 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Tue Aug 23, 2005 2:18 pm
Posts: 331
Location: Houston, TX
If you change /joomla/ to /, then how is anyone supposed to access the folders you presently have at /?


Top
  E-mail  
 
Posted: Mon Dec 05, 2005 8:24 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Aug 19, 2005 3:03 pm
Posts: 4724
Location: Indiana, USA
feldon27 wrote:
If you change /joomla/ to /, then how is anyone supposed to access the folders you presently have at /?


if you change the / address to point to /joomla/, how would anyone access / anyway?

_________________
If you're new to Joomla, Please read Anna's Joomla! Tips: viewtopic.php?t=5503

http://nathandiehl.com | Find out what makes me tick


Top
   
 
Posted: Tue Dec 06, 2005 3:37 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
so i take it that there is no way to make a folder in the root directory and use it as a virtual root folder?
what if, say, you have 2 domains and you want to have two websites on the one account?
how would you do that?
would you have to create two virtual directories and configure your site so that if someone goes to
http://www.domain1.com --> it goes to http://www.domain.com/domain1, but shows http://www.domain1.com in the address bar.
http://www.domain2.com --> it goes to http://www.domain.com/domain2, but shows http://www.domain2.com in the address bar.

_________________
http://www.persianari.com


Top
   
 
Posted: Tue Dec 06, 2005 3:52 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
feldon27 wrote:
If you change /joomla/ to /, then how is anyone supposed to access the folders you presently have at /?

good question.  ???
would we need to have access to them?
doesn't Joomla! have every folder and file it needs to work?
if you have a joomla folder and you wanted to use it as your main folder then you could do this, but if you were looking to have the joomla folder as a part of the site and have other folders outside it, then you wouldnt be able to access them.

_________________
http://www.persianari.com


Top
   
 
Posted: Tue Dec 06, 2005 5:40 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 12:38 am
Posts: 11207
Location: Sydney - Australia
This all sounds like hard work? Why are you trying to do this? To host multiple domains off a single domain account?

_________________
Brad Baker - Follow me on Twitter @xyzulu @rochenhost
http://www.rochen.com - Joomla! Hosting, the correct way.
http://www.joomlatutorials.com <-- Joomla Help
..somewhere in this hospital the anguished oink of a pig man cries out for help..


Top
  E-mail  
 
Posted: Tue Dec 06, 2005 5:58 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
If I have one web hosting account and want to have 2 domain names with 2 seperate sites on that account, how do I do that?
It would save having to pay for another web account!

If I have a hosting account for my domain http://www.mysite.com and I want to direct another one of my domain names (e.g. http://www.mygallery.com) to a folder "gallery" in my root directory, how would i do this?
NOTE: I dont want the url to be http://www.mysite.com/gallery, I want it to be http://www.mygallery.com, but obviously it would be really http://www.mysite.com/gallery since thats were the folder is.

I KNOW THAT I CAN DO
- 1 domain name on 1 web account
- 2 or more domain names on 1 web account (all other domain names will be accessing the same content)

BUT IS THIS ALSO POSSIBLE?
- 2 or more domain names on the 1 web account (each domain name has its own root folders in the actual root folder of the web account. i.e. they all have their own content and are seperate and independent of each other)

I recall seeing a webhosting company allowing multiple domains on the one webhosting account, were each domain name had its own virual directories.
I think it worked like subdomains, were you creat the subdomain and a folder is made in the root directory.
Then when people went to the domain (e.g. sub.domain.com) it would go to the folder sub but would show it as http://www.sub.domain.com, not http://www.domain.com/sub.

I dont mean to be a pain, I currently have my Joomla! installation in the root of my account and have only one domain name, but i was just curious to know whether what I am saying can actually be done.

_________________
http://www.persianari.com


Top
   
 
Posted: Tue Dec 06, 2005 6:00 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
is there some kind of masking that can be applied to this situation.
like if someone goes to http://www.mygallery.com it goes to http://www.domain.com/gallery but masks this url to only show http://www.mygallery.com?

_________________
http://www.persianari.com


Top
   
 
Posted: Tue Dec 06, 2005 6:01 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 12:38 am
Posts: 11207
Location: Sydney - Australia
Well some hosts offer multiple domain hosting.. so that would solve your problem.

However to do things the way you are after.. you will have to consult with your host first.. but I would pursue the subdomain method.

_________________
Brad Baker - Follow me on Twitter @xyzulu @rochenhost
http://www.rochen.com - Joomla! Hosting, the correct way.
http://www.joomlatutorials.com <-- Joomla Help
..somewhere in this hospital the anguished oink of a pig man cries out for help..


Top
  E-mail  
 
Posted: Tue Dec 06, 2005 6:07 am 
User avatar
Joomla! Explorer
Joomla! Explorer
Offline

Joined: Sat Oct 08, 2005 3:25 pm
Posts: 361
Location: Australia
thanks brad.
so it is possible if the host allows it and has set it up to do this?
obviously my host hasnt, so I guess I have to talk to them to see if they allow this, which I doubt! :(

_________________
http://www.persianari.com


Top
   
 
Posted: Tue Dec 06, 2005 6:12 am 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Fri Aug 12, 2005 12:38 am
Posts: 11207
Location: Sydney - Australia
Of course it can be done :) It has to be setup by your host, that's all.. however I am sure your host won't offer it.. that being said, hosting is not that expensive if you pay for it..

_________________
Brad Baker - Follow me on Twitter @xyzulu @rochenhost
http://www.rochen.com - Joomla! Hosting, the correct way.
http://www.joomlatutorials.com <-- Joomla Help
..somewhere in this hospital the anguished oink of a pig man cries out for help..


Top
  E-mail  
 
Posted: Tue Dec 06, 2005 2:13 pm 
User avatar
Joomla! Virtuoso
Joomla! Virtuoso
Offline

Joined: Fri Aug 19, 2005 3:03 pm
Posts: 4724
Location: Indiana, USA
my host offers this.
i pay $6.95 per month...1 GB storage, 10 GB transfer. PM if interested in details...

i didn't know this wasn't a common feature to all hosts...

_________________
If you're new to Joomla, Please read Anna's Joomla! Tips: viewtopic.php?t=5503

http://nathandiehl.com | Find out what makes me tick


Top
   
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ] 

Quick reply

 



Who is online

Users browsing this forum: BoltonRed and 41 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group