+ Reply to Thread
Results 1 to 6 of 6

Thread: Creating a redirect from subdomain.mydomain.com to mydomain.com/subdomain

  1. #1

    Default Creating a redirect from subdomain.mydomain.com to mydomain.com/subdomain

    Does anyone know if I can create a redirect from subdomain.mydomain.com to mydomain.com/subdomain? Is it possible to use .htaccess file for this?

    Thanks!

  2. #2
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    Why would you want to do that? A call to subdomain.mydomain.com is already pulling its files from mydomain.com/subdomain. A redirect of some sort would, I suppose, change what appears in the browser's address bar, but that's about it.

  3. #3

    Default

    If I type something.mydomain.com I get address not found.
    I would like to be able to have that (or anything else instead of "something") automatically redirect to mydomain.com/something

  4. #4
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    You need to add it as a subdomain from the Control Panel. That will automatically set things up the right way.

  5. #5

    Default

    I know I can add each one from the domain manager, but I'd like to be able to set it up automatically, so a user that comes to my site, can get their own name.mydomain.com on my site, without me having to create it for them manually...

  6. #6
    Early Out's Avatar
    Early Out is offline Former Moderator, Still Respected
    Join Date
    Mar 2006
    Location
    Sector R
    Posts
    4,650

    Default

    But an .htaccess redirect would have to be set up by you, anyway, so I don't think there could possibly be an "all automated" way of doing it. You certainly don't want your users to be able to edit the .htaccess in your public_html directory! Maybe someone else has found a way to get from here to there....

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts