Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 1:07 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  [ 4 posts ] 
Author Message
Posted: Sat May 06, 2006 9:39 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Apr 30, 2006 11:48 pm
Posts: 6
I moved my Joomla site from the root to a subdirectory. Example: /mainsite
So, now I want to have http://www.mysite.com point to /mainsite and not the root. Is there an easy way of doing this for someone who doesn't know php at all?

Thanks.


Top
  E-mail  
 
Posted: Sat May 06, 2006 11:44 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Fri Nov 11, 2005 10:35 pm
Posts: 155
Location: London, UK
If your webhost has a cPanel control panel, open this and click on "Redirects"

type in  http://www.mysite.com/index.html and redirect to http://www.mysite.com/mainsite/index.php

that should do the trick


Top
  E-mail  
 
Posted: Sun May 07, 2006 8:21 am 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Apr 30, 2006 11:48 pm
Posts: 6
Unfortunately, I don't think I have cPanel. I'm hosting with Godaddy, which seems ok so far.
I've searched all through the server admin but don't find anything. I'm wondering if redirecting isn't an option with the "economy hosting" plan :)
Probably have to upgrade?

Could I use a index.php file to redirect to another directory?


Top
  E-mail  
 
Posted: Sun May 07, 2006 10:58 am 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Tue Feb 21, 2006 2:32 pm
Posts: 223
Location: USA
Probably the easiest way is with your .htaccess file (if you have it). Add a line like this:

Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html

All three parts are seperated by a space, and the second part is relative to the root of your site. You can also redirect an entire directory (in case you have a lot of outside links pointing a interior pages):

/olddirectory http://yoursite.com/newdirectory/

_________________
http://www.idea-machine.net - Our Joomla site


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 19 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