Subdomain question please help

rmxs

Verified User
Joined
Jan 14, 2007
Messages
133
hello..

I have one question about subdomain.

i have one site and in the site i have a chat a greeting cards program etc...

the urls its like domain.com/this_is_the_module.php?and_the_Action_here

i wont to create a subdomain for this url and if the user type greetings.domain.com poing to the first url..

Its not possible to move this files to the folder that the subdomain manager create..

any idea?
 
hmmm

yes byt how its possible when this script need files from the normal domain..
the site is joomla so that mean the url il like domain.com/index.php?com_chat=options etc

so i wont to move the com_chat in this folder..if i move this folder there its not possible to accees this page because com_chat need files from the same root like ../images

so i wont the chat.domain.com show me the module from www.domain.com/index.php?com_chat
 
Of course it is. Did you even try this? It creates a subdomain, so obviously that subdomain can read files one directory up.

Try it and see, I think you'll be amazed at how simple it is.
 
Also you should note that you can't just move a component to a subdirectory in Joomla. You need to actually update the paths and change the settings in order for it to work. A much simpler solution in your case would be to set up a simple iframe in the subdirectory and work it from there, you'll get the subdirectory working and you won't have to bother with recoding joomla beyond your ability.
 
If I'm understanding your question properly, it seems like it would be easier to:
a) create the subdomain as an alias in DA, and set up the A record manually or
b) create it as a subdomain, but remove the subdomain directory, and replace it with a symbolic link back to the public_html folder. This isn't really that great of an idea though, as you can get in a link "loop".
c) set it up as a subdomain, but edit the httpd.conf to set the document root to the public_html folder
 
If I'm understanding your question properly, it seems like it would be easier to:
a) create the subdomain as an alias in DA, and set up the A record manually or

Why is there a need to do anything manually? DA magically takes care of the A record for you when you create a subdomain with the link to the docs I provided above.

b) create it as a subdomain, but remove the subdomain directory, and replace it with a symbolic link back to the public_html folder. This isn't really that great of an idea though, as you can get in a link "loop".

Bad idea, it would point to itself and cause lots of problems with the scripts.

c) set it up as a subdomain, but edit the httpd.conf to set the document root to the public_html folder

Far, far easier (especially if you don't own the box), is to do this with PHP and an iframe, it's literally two lines of code.
 
Hi,

I try to move the com folder byt nothing happends :)n blank page so that means its not correct the path.

maybe i-frame its good idea byt not the best sollution

thanks,
if you have any other suggestions im here :)

(im in dedicate box )

EDIT.
with i-frame problems.

i set iframe to page that i wont to make subdomain and works with width and heidth 100% and scollbar yes without user know that is i frame BYT...the page titmle stay in all site the same because user is still in the subdomain.domain.com page that means all the site load with this subdomain if user use it.

any other idea?
 
Last edited:
Onother one idea that i have is the redirection from subdomain.domain.com to the normal url domain.com/blabla?script...blabla

byt the url changes in the browser,how its possible to lock the url in the subdomain so when the user redirected stay at the same url subdomain.domain.com??
 
Back
Top