Jump to content

Recommended Posts

Posted

Hello, I want to have a directory in my account just for the subdomains redirect, something like public_html/subdomains/name_of_the_subdomain and redirect each subdomain to your directory inside this directory, for example the subdomain webmail i like to redirect to the directory public_html/subdomains/webmail

 

How I can do it?

 

Thanks,

Caueh

Posted

Hello,

 

I believe that each "name fsubdomain.html or .php" will need a redirect in some form which will have to manually entered into each page. This can be done via meta refresh or javascript

 

JimE

Posted

Caueh,

 

Did Jim's answer help? Let us know if we can be of further assistance.

Posted
Caueh,

 

Did Jim's answer help? Let us know if we can be of further assistance.

 

Hi Abinidi!

 

I didn't understand the Jime's answer, but I think that it do not answer my question, because it envolves javascript and meta tags and my question is only server-side.

 

I will try to explain better what I want:

 

normally a subdomain is only a shortcut to a normal directory. In the TCH cPanel, when you create a subdomain, is created too a directory for that subdomain. I want use another directory for that subdomain.

 

I need a english course urgent!! :clapping:

 

Thanks for the help!

 

Caueh

Posted

Caueh,

 

I think that what you want to accomplish would be best accomplished by editing your .htaccess file.

 

Your .htaccess file allows you to change how users are redirected to various parts of your site, even such that directories shown in the URL aren't truly the ones that exist on the server.

 

I, however, am not an .htaccess guru. Maybe TCH-David or another of our .htaccess gurus can chime in to this discussion to let you know how you would modify your .htaccess file to accomplish what you are attempting to do.

 

Good luck!

 

PS: I notice that you are from São Paulo. I lived in Zona Norte in São Paulo for a couple of years in the late 90s. I loved it there! You live in a very beautiful part of the world :clapping:

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...