Jump to content

Recommended Posts

Posted

I think I ran across this term while playing with apache a while back and was curious if this option is available. I've tried doing this via subdomains but did not achieve desirable results. Perhaps I'm missing something??

 

I own:

domain.com

domain/public_html/

 

I want:

sub.domain.com

domain/public_html/sub/

 

when I set this option up in cpanel, I basically get url redirection.

 

sub.domain.com -> domain.com/sub

 

 

 

Is there anyway to get this sort of functionality without the url changing?

 

Thanks for any help and suggestion.

w.

Posted

On the surface it looks that way but what the user who visits your subdomain sees is sub.domain.com/ It masks it so they don't know it's domain.com/sub. At least on mine it does. If you set one up and it doesn't behave that way then let us know.

Posted

Basically, I went into cpanel and did the "manage subdomains" options. I first created a subdomain and then setup redirection to point it to a particular directory in my share. Is this the correct manner for doing it?

 

like PDABruce, the url changes once the page is loaded. Is this how it's supposed to work?

Posted (edited)

not necessary to setup redirection....that maybe causing the problem.

 

If you simply create the sub, the directory will automatically be created and the URL will mask properly.

 

Going to test that again and be absolutely positively positive....brb

 

update: Waiting on propagation....

Edited by TCH-Lianna
Posted

Yeah, what they said. :)

 

I also just created it and it made the directory for me - no redirection necessary.

Posted

OK, that's all I did as well but it still changes the url in the broswer once loaded. Just was wondering if there was a way to make it stick as sub.domain.com it's not really a problem because it works.

 

I will try again with another sub and see if it changes. I may have had the sub folder already created before adding the subdomain.

Posted

Thanks TCH for all your help and support in this issue. I did what was mentioned (created subdomain w/o redirection) and things worked great! I think my problem was I created the directory myself instead of letting the creation of the subdomain handle it.

 

Also, the url is correct in that it shows the subdomain instead of reverting. Great!!!

 

Awesome support! Rock Sign

w.

Posted (edited)

Yup, my test went as expected too.

 

So the learnings here are -

 

For proper URL masking of subdomains, the subdirectory must not have already been created and must not be redirected. Create the subdomain through cPanel and publish to the automatically created directory.

 

:)

 

By the way, Welcome, wujimon! :)

Edited by TCH-Lianna

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...