Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 9 of 9

This is a discussion on Redirect in multihosted domain in the Shared & Semi-Dedicated forum
Hi, I have a a multihosted domain pointing to a subdomain unde the principal domain. Like this: www.multihosteddomain.com points to: www.principaldomain.com/multihosteddomain I want that: www.multihosteddomain.com/subdir ...

  1. #1
    ard
    ard is offline
    JPC Member
    Join Date
    Mar 2004
    Posts
    1

    Redirect in multihosted domain

    Hi,

    I have a a multihosted domain pointing to a subdomain unde the principal domain. Like this:

    www.multihosteddomain.com

    points to:

    www.principaldomain.com/multihosteddomain

    I want that:

    www.multihosteddomain.com/subdir

    To resolve in:

    www.multihosteddomain.com/subdir/

    (that's no happening) So I tried to setup a redirect, with no success. Any suggestion is appreciated.

    Thanks in advance,

    Aníbal Rojas

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    That should be happening. I'd contact support on the issue. Someone else posted some time this weekend (I've been away from civilization all weekend and haven't been keeping up with posts) about a similar slash problem. I'd suspect that some server isn't correctly configured.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    I'll put in a ticket for my site (on Oxygen) shortly. I've heard from several knowledgeable sides now that this is not normal behaviour, so I hope they can fix this.

    In addition: how do I set up a redirect to make all multihosteddomain.principaldomain.com/... URLs redirect to multihosteddomain.com/...? To remove the "duplicate entry point" so to speak.
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  4. #4
    JPC Member
    Join Date
    Mar 2004
    Posts
    6
    Hi Heemskerk,

    You issue is fixed. Please check.

  5. #5
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Yep it works without the slash now. Support was back very fast. Or maybe they already responded to the forum post? d4rk are you a (new) support technician?

    Now just the redirect to figure out. I guess Jason will have passed by before I have time later today to study the apache manuals
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Originally posted by Gwaihir
    Now just the redirect to figure out. I guess Jason will have passed by before I have time later today to study the apache manuals
    Be sure to study the section on mod_rewrite, as that's where the answer will be. I might have an example that I can dig up for you somewhere, but it will have to wait. I have to go walk my friend's dog first.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  7. #7
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    I was already reading when you posted and had wound my way to mod_rewrite indeed (the mod_alias which does the simpler redirects doesn't cut it). But that one is soooo complex and full of regular expression stuff

    So I'd appreciate it if you take a look at what I *think* is the answer before I throw it in the .htaccess file.

    Code:
    RewriteCond %{HTTP_HOST}   ^fully\.qualified\.subdomain\.name
    RewriteRule ^/(.*)         http://fully.qualified.multihosteddomain.name/$1 [R=permanent]
    Also wondering: can I put this in the "main" .htaccess file, or will I have to put it in the subdomain's own folder? (Would rather not start spreading these all over the place without need).
    Regards,

    Wim Heemskerk
    ---
    Visit MeCCG.net - Cardgaming in J.R.R. Tolkien's Middle-earth
    And Gwaihir.net - The Middle-earth CCG store

  8. #8
    JPC Member
    Join Date
    Mar 2004
    Posts
    6
    Great.

  9. #9
    Jag Veteran
    Join Date
    Sep 2002
    Posts
    650
    Originally posted by Gwaihir
    In addition: how do I set up a redirect to make all multihosteddomain.principaldomain.com/... URLs redirect to multihosteddomain.com/...? To remove the "duplicate entry point" so to speak.
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.multihosteddomain\.com(:80)?$
    RewriteCond %{HTTP_HOST} !^multihosteddomain\.com(:80)?$
    RewriteRule ^(.*) http://www.multihosteddomain.com/$1 [L,R]
    and put this .htaccess into multihosteddomain directory.
    Last edited by gerilya; 05-04-2004 at 02:30 AM.

Bookmarks

Posting Permissions

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