1
wonder
Sub-domain in modules
  • 2005/12/3 19:54

  • wonder

  • Not too shy to talk

  • Posts: 144

  • Since: 2005/5/22


Is that possible to set a subdomain (not a redirection)to a module?

2
stelian
Modules in subdomain, is it possible?
  • 2006/5/30 14:28

  • stelian

  • Just popping in

  • Posts: 87

  • Since: 2005/12/17


Hello.
I would like to run the newbb forum in a subdomain.
Instead of www.mysite.com/modules/newbb/ to be forum.mysite.com

Is it possible? Do I have to edit .htaccess?

Thanks in advance.

3
neill
Re: Modules in subdomain, is it possible?
  • 2006/8/3 8:47

  • neill

  • Just popping in

  • Posts: 16

  • Since: 2006/7/23


bump, same problem here

i made www.mydomain.com/modules/newbb
a subdomain bbs.mydomain.com

if i go to my subdomain, i get a message of
"Selected module does not exist!"

but i can access newbb from the main domain.

i also made 1 subdomain for each modules, but all of them are having same problem

4
Quest
Re: Sub-domain in modules
  • 2006/8/3 9:55

  • Quest

  • Friend of XOOPS

  • Posts: 1034

  • Since: 2005/11/19


A sub-domain for simplicity, will be treated as if it is its own domain. Therefore, if you have created the sub-domain but have no files within its directory then it is empty. And something like bbs.mydomain.com has no way of knowing how to find mydomain.com/modules/newbb.
There are probably more ways to do this but the one that comes to mind is to:
-Create your sub-domain according to the instructions of the host/server.
-Upload and install your XOOPS version files to the directory folder which was created as part of the sub-domain creation process.(i.e. mydomain.com/bbs)
-Upload and install your newbb/cbb forum module to the sub-domain directory.
-Set the forum module as your start page.
Now you should be able to access it by going to i.e. bbs.mydomain.com. (which will now display as: bbs.mydomain.com/index.php or bbs.mydomain.com/modules/newbb

Hope this helps!

If you are wanting the same password and login for your bbs.mydomain.com and your mydomain.com you will have to make other adjustments. Search here for multiple sites same password and that should get you going in the direction you want.

Quest

5
neill
Re: Sub-domain in modules
  • 2006/8/3 11:12

  • neill

  • Just popping in

  • Posts: 16

  • Since: 2006/7/23


there must be a workaround, i understand the multisite hack, but i dont want to apply too many hack or it will become too hard to maintain and update

if its the domain name problem, (the virtual path set in mainfile)
then i wouldn't be able to setup a secondary domain, which i did, and fully functional even for all modules



the workaround i have in mind is create a subdomain that redirect to www.mydomain.com/modules/modulename with url masking enabled, but thats very host specific. i'll test it and see how it goes

6
Daigoro
Re: Modules in subdomain, is it possible?
  • 2006/8/3 13:23

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


The easiest fix would be the following:

Create or edit the .htaccess file (or the equvilient for your specific server) on your forum.mysite.com subdomain and put in the following contents:

Redirect 301 http://www.mysite.com/modules/newbb/


Idearly You would probably have prefered a temporaly ridirect (302) where your sumdomain would be used as the new URL for the newbb module - however it's riddled with hijack problems and I would not reccomand it. You may also have problems with search engines giving you a pennelty for hosting the same contents twise.
Best regards,
Daigoro

7
neill
Re: Modules in subdomain, is it possible?
  • 2006/8/3 23:42

  • neill

  • Just popping in

  • Posts: 16

  • Since: 2006/7/23


Thx Daigoro

this is what i did, except i have masking on, but i never know it will have penalty with search engines, so i'll remove it, thx again

8
Daigoro
Re: Modules in subdomain, is it possible?
  • 2006/8/3 23:59

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


Just to make sure, it's the 302 that may cause problems.
If you use the 301 as in my example, you should be safe.

You can read about the 302 hijacking and search engine problems here.
Best regards,
Daigoro

Login

Who's Online

172 user(s) are online (104 user(s) are browsing Support Forums)


Members: 0


Guests: 172


more...

Donat-O-Meter

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

Latest GitHub Commits