redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Monday 15 October 2018 22:25

Ask your IT question here

Subdimain Question



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> Web Hosting and web server administration discussion
View previous topic :: View next topic  
Author Message
Angel
Guest Programmer




I was curious about something.
How would I go about making it so when I do,

http://forum.redho.com

It stays like that, instead of going http://www.redho.com/forum/

Reply with quote
 
Lord
Guest Programmer




You have to have a host that gives you the ablility to set up subdomains...most do and usually they give a few free as part of your hosting plan.

If you have a host that uses the popular cpanel, you would go into the 'setup subdomains' link (or something similar) and it will ask what subdomain you want to set up. So, in your example, you would name it 'forum'.

Then, you need to set up a folder in your main directory (or public_html directory as many hosts call it) and call it 'forum'.

That should do it.

Reply with quote
 
Angel
Guest Programmer




Well, I have my own stuff.

I was curious if there's like a rewrite rule or something so it could stay as ->

forum.site.com/(whatever_name).(whatever_file_extension)

instead of when I go to forum.site.com

it goes to http://www.site.com/forum/


i have vBulletin and i set it up for the base url to be forum.site.com

Listen 80
ServerName www.site.com:80

NameVirtualHost *
<VirtualHost *>
ServerName forum.site.com
DirectoryRoot /www/forum
</VirtualHost>

Reply with quote
 
BDumitru
Site Admin


Joined: 08 Aug 2006
Posts: 7
Anyway, for the newbs: there are PHP scripts that allow you to create subdomains from directories ....
Reply with quote
 
WarChild
Enthusiastic Coder


Joined: 24 Feb 2006
Posts: 46
You can set up transparent redirects also by using Apache's mod_rewrite
Reply with quote
 
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> Web Hosting and web server administration discussion


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

© 2018 RedHo