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

This is a discussion on subdomain redirect not working in the Shared & Semi-Dedicated forum
Hi all, I set up a subdomain of x on domain y.com, thus x.y.com, to redirect to y.com/x, which works fine. I then set up ...

  1. #1
    JPC Member
    Join Date
    Mar 2007
    Posts
    4

    Question subdomain redirect not working

    Hi all,
    I set up a subdomain of x on domain y.com, thus x.y.com, to redirect to y.com/x, which works fine. I then set up a subdomain of z to redirect to y.com/x, which doesn't work. So http://z.y.com gives a "server not found error." I compared the .htaccess files in both y and z directories and they're the same except for referencing their respective subdomains. Jaguar's not been able to help so far, telling me to clear my cache, etc. It did work, however, going through a proxy server, so I'm not sure why it doesn't work for me when i just type in http://z.y.com. Going to http://y.com/z gives me a 403 error, but that's probably b/c indexes aren't turned on for the site.

    y.com's .htaccess:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^z.y.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www.z.y.com$
    RewriteRule ^(.*)$ http://y.com/x [R=301,L]

  2. #2
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    y.com's .htaccess? Shouldn't that be in the z.y.com folder (public_html/z)?
    Regards,

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

  3. #3
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Perhaps the DNS entry for z.y.com didn't get created correctly. I had that problem sometimes on my old server--for whatever reason cPanel would stop talking to the DNS server, so whenever I tried to create a new (sub)domain it would look like it worked but without the DNS entry the name would never resolve.

    If you haven't already, ask support to check that a DNS record for z.y.com actually exists.

    You may also want to post the actual domain names in question so that others can test the connection. That way you can better determine if the problem is related to JPC or if it is on your end only.

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

  4. #4
    the Windlord Gwaihir's Avatar
    Join Date
    Jun 2002
    Posts
    2,562
    Quote Originally Posted by jason View Post
    If you haven't already, ask support to check that a DNS record for z.y.com actually exists.
    Or check yourself, for example at www.dnsstuff.com
    Regards,

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

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
  •