Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Redirecting To Forums
cyborgxxi
post Nov 20 2005, 01:13 PM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 342
Joined: 31-July 05
Member No.: 7,540



Let's say I have a forums software installed in the hosting server as /forums

If you are going to access the forum, then you type http://hello.astahost.com/forums/index.php, correct?

What if you want to access the forum just by typing http://hello.astahost.com?

How is that possible? I don't want to use redirecting services... I wonder if it's possible.

Please remember that the links above are just example URL's. They're not real
Go to the top of the page
 
+Quote Post
miCRoSCoPiC^eaRt...
post Nov 20 2005, 01:27 PM
Post #2


PsYcheDeLiC dR3aMeR
Group Icon

Group: Admin
Posts: 2,242
Joined: 29-January 05
From: Nakorn Chaisri, Thailand
Member No.: 2,411
myCENTs:84.36



Ya very simple.. Now you call http://hello.astahost.com/forums/index.php because, you forum software's index.php and all other files have been installed under /public_html/forums/ directory.

Surely you know that whatever is in your public_html directory gets shown in the browser.. So if you unzip your forum software into the public_html dir, then it's index.php will be available right there - and will show up in the browser as http://hello.astahost.com

So all you need to do it move your whole forum software files out of your "forum" directory and place them under public_html.
Go to the top of the page
 
+Quote Post
cyborgxxi
post Nov 20 2005, 01:39 PM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 342
Joined: 31-July 05
Member No.: 7,540



Alright, thank you smile.gif I'll try that later this week... I have too much to study for today and tomorrow sad.gif School is so oppressive!
Go to the top of the page
 
+Quote Post
dhanesh
post Nov 20 2005, 08:36 PM
Post #4


Binary Geek
Group Icon

Group: Members
Posts: 444
Joined: 4-November 05
From: The Digital Arena
Member No.: 9,440



While this is being asked, just another question to be popped in .. sorry cyborgxxi.

When you said that we could unzip the forum software files to the "Public_HTML" folder, what or how do i write the configuration detail when asked for by the forum while installation. As in some forums ask you to type in your forum folder like "forum" or "forums" , so in this case do i leave the place blank or just a "/" would do ? I havent tried this out yet or neither have i installed a forum in root, i always use the folder unsure.gif , but after reading the post, this thought did cross me.

Regards
Dhanesh.
Go to the top of the page
 
+Quote Post
Hercco
post Nov 23 2005, 12:34 PM
Post #5


Super Member
Group Icon

Group: Members
Posts: 595
Joined: 4-September 04
Member No.: 228



QUOTE(dhanesh @ Nov 20 2005, 10:36 PM)
As in some forums ask you to type in your forum folder like "forum" or "forums" , so in this case do i leave the place blank or just a "/" would do ?
*



If it asks for the folder with the traling slash (ie. forums/ ) then put a single slash there. If treiling slash is not there, leave it empty.

If neither work, you could use './' (dot and a slah), which basically in unix systems references to the current directory.

Go to the top of the page
 
+Quote Post
dhanesh
post Nov 23 2005, 04:02 PM
Post #6


Binary Geek
Group Icon

Group: Members
Posts: 444
Joined: 4-November 05
From: The Digital Arena
Member No.: 9,440



Thanks hercco, would try that next time, its just that the idea of keeping a "./" whiles asked for configuartions, isnt getting into me. Is it just for forums ? or in the case of a few CMS's if the forum folder is in the root then what ? a "/forum" wouldent be approprite rite ?

Regards
Dhanesh.
Go to the top of the page
 
+Quote Post
cyborgxxi
post Nov 26 2005, 02:18 AM
Post #7


Premium Member
Group Icon

Group: Members
Posts: 342
Joined: 31-July 05
Member No.: 7,540



Alright, M^E, I am building a website right now. Well, so, I put my .html file under public_dir/ and thinking I can access that .html file just by typing http://hello.astahost.com

But no, I had to type in http://hello.astahost.com/index.html

How do I fix this?
Go to the top of the page
 
+Quote Post
Quatrux
post Nov 26 2005, 10:18 PM
Post #8


the Q
Group Icon

Group: [HOSTED]
Posts: 1,133
Joined: 13-July 05
From: Lithuania, Vilnius
Member No.: 7,059
myCENTs:5.70



you can fix this by putting a htaccess file, sorry i forgot the code, but on google you will find it, i need to go now, i am in rush, so thought will help atleast with what is needed to be done wink.gif
Go to the top of the page
 
+Quote Post
vujsa
post Nov 27 2005, 03:11 AM
Post #9


Absolute Newbie
Group Icon

Group: Admin
Posts: 888
Joined: 20-February 05
From: Indianapolis, Indiana, USA (Midwest)
Member No.: 2,714
myCENTs:35.43



Okay, there are a couple of ways to reach your forum @ http://hello.astahost.co./forum/index.html by typing http://hello.astahost.com

First, if you don't want to move the forum software to the root directory, create a index.html file in the root directory that simple has a redirect command.

http://www.astahost.com/need-re-direction-script-t6640.html

Second, you can create or modify your .htaccess file in the root directory and have it forward all requests of the root directory to another domain, directory, or file.

You can access the .htaccess file in the cPanel > Site management Tools > Manage Redirects option.

Hope this helps. cool.gif

vujsa
Go to the top of the page
 
+Quote Post
Logan Deathbring...
post Dec 2 2005, 07:04 AM
Post #10


Geek in-training
Group Icon

Group: Members
Posts: 301
Joined: 2-July 05
From: Washington State, USA, 3rd Rock from the Star Sol
Member No.: 6,772



Here is a link to a webpage that I use when I need a reference guide to how to properly use and modify .htaccess files, and how to do soproperly. Here is the link. That document gives very detail information on how to properly use .htaccess files. Hope it helps...
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics


 



- Lo-Fi Version Time is now: 5th December 2008 - 11:12 AM