1
beerMe
Change url.com/directory to directory.url.com???
  • 2004/11/12 19:30

  • beerMe

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/9/13


Hi gang, I don't even know what words to search for to do this... I want to make it so someone can type reviews.mysite.com in their browser, and the browser will load http://www.mysite.com/modules/reviews/index.php. But I want the browser's address bar to just display reviews.mysite.com. How can I do this? My host has cPanel, if that will help me at all.

Thanks for the help, as always.

2
discopimp
Re: Change url.com/directory to directory.url.com???
  • 2004/11/13 14:39

  • discopimp

  • Just popping in

  • Posts: 4

  • Since: 2004/11/10


hi,

what you want to do is called a sub-domain ...

if you have cpanel on your host you can probably do this yourself (look under Domain/subdomain or Tools/Domains or sth like that). The number of sub-domains you can set up depends on your hosting package (some hosts have unlimited subdomains) ...

from my experience, there are two ways hosts deal with this:

1/ you just point a subdomain to an exisitng directory
ex: reviews.mysite.com just points to the directory http://www.mysite.com/modules/reviews/

2/ when you set up a sub-domain, the host automatically creates a new directory in your root html folder and you can't re-assign it to any other folder (you could still put a html file in there which automatically jumps to the adress you want)

The problem with subdomains and XOOPS is that there is no way to tell XOOPS that it should point to a subdomain instead of a real folder (at least not that i know of) ... you'll have to edit the php source of XOOPS i think to do this ...

If you don't want people to see the real url http://www.mysite.com/modules/reviews/index.php but always only see http://www.mysite.com/ you can make a frameset (with an invisible frame and the XOOPS url in the other)

hope this helps ....

make a search for sub domains and framesets in google/yahoo if this is total chinese to you

3
beerMe
Re: Change url.com/directory to directory.url.com???
  • 2004/11/13 17:12

  • beerMe

  • Not too shy to talk

  • Posts: 133

  • Since: 2004/9/13


Cool, discopimp, thanks. I had already figured out the subdomain part of it, but hiding the url.com/modules/whatever/morebullsh*t was the trick. I'll try that hidden frame technique.

Thanks!

Login

Who's Online

456 user(s) are online (60 user(s) are browsing Support Forums)


Members: 0


Guests: 456


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits