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 Can't redirect pages to mult-hosted domain in the Shared & Semi-Dedicated forum
I'm having a problem with redirects. I cannot redirect from my main domain to a multi-hosted domain, except for the index page. For instance, Redirect ...

  1. #1
    Aletia Customer
    Join Date
    Oct 2001
    Posts
    631

    Can't redirect pages to mult-hosted domain

    I'm having a problem with redirects. I cannot redirect from my main domain to a multi-hosted domain, except for the index page. For instance,

    Redirect permanent /disneyhome.html http://www.waltdisneyresource.net (works)

    Redirect permanent /disneyfaq.html http://www.waltdisneyresource.net/disneyfaq.html (does not work)

    Anyone got a clue why this won't work. I've read up on appache, and it seems to be correct.

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    I read the code fine, but I'm at a bit of a loss as to what you are trying to acomplish.

    What is the URL of where you are trying to redirect FROM
    and
    What is the URL of where you are trying to redirect TO

    in both cases. Also, is it set up to do that now so we can look at the results for ourselves?

    EDIT: Actually, we know what the URL is you're trying to redirect TO.... just need the from. D'oh.

    Also, when you say it "does not work" do you mean that it behaves as if there's no redirect in place, or do you get other unexpected results?

    Also, are there other things you've got going in .htaccess?
    Have you tried each individually?
    Have you tried adding a line or another redirect AFTER the faq redirect?

    Stuff like that.
    Last edited by Ron; 07-28-2004 at 10:30 AM.

  3. #3
    Aletia Customer
    Join Date
    Oct 2001
    Posts
    631
    I did say that I was trying to refirect from my main domain. In this case, this happens to be joshuasplace.net. I don't have anything in my htaccess other than those two examples. When I type in the URL, it times out when those lines of code are in place.

  4. #4
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    Well, there's not much I can offer you, except the suggestions above, without the code in place to investigate.

    Redirection from the first line seems to be working fine. Redirection from the second seems to be using a meta refresh tag to accomplish redirection.

    As I suggested, you can try putting one line at a time in place, and you can try having three, and mixing up the order. Also be sure to clear your cache, as IE or whatever may not be checking for newer pages.

    At your leisure, you can use this:
    http://www.seoconsultants.com/tools/headers.asp
    and see what comes back from the server.

    Good luck, Joshua.
    Last edited by Ron; 07-28-2004 at 12:39 PM.

  5. #5
    Aletia Customer
    Join Date
    Oct 2001
    Posts
    631
    That Server Result page shows an unending loop. When it gets to the redirect target, it shows another 301 to the target. Any clue what might be causing this to happen? #2 and #3 are repeated until it times out.

    #1 Server Response: http://www.joshuasplace.net/disneyfaq.html
    HTTP Status Code: HTTP/1.1 301 Moved Permanently
    Date: Wed, 28 Jul 2004 17:03:48 GMT
    Server: Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.8 FrontPage/5.0.2.2634a mod_ssl/2.8.19 OpenSSL/0.9.7a
    Location: http://www.waltdisneyresource.net/disneyfaq.html
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    Redirect Target: http://www.waltdisneyresource.net/disneyfaq.html

    #2 Server Response: http://www.waltdisneyresource.net/disneyfaq.html
    HTTP Status Code: HTTP/1.1 301 Moved Permanently
    Date: Wed, 28 Jul 2004 17:03:48 GMT
    Server: Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.8 FrontPage/5.0.2.2634a mod_ssl/2.8.19 OpenSSL/0.9.7a
    Location: http://www.waltdisneyresource.net/disneyfaq.html
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    Redirect Target: http://www.waltdisneyresource.net/disneyfaq.html

    #3 Server Response: http://www.waltdisneyresource.net/disneyfaq.html
    HTTP Status Code: HTTP/1.1 301 Moved Permanently
    Date: Wed, 28 Jul 2004 17:03:49 GMT
    Server: Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.8 FrontPage/5.0.2.2634a mod_ssl/2.8.19 OpenSSL/0.9.7a
    Location: http://www.waltdisneyresource.net/disneyfaq.html
    Connection: close
    Content-Type: text/html; charset=iso-8859-1
    Redirect Target: http://www.waltdisneyresource.net/disneyfaq.html

  6. #6
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    I think it may be a case of inherited .htaccess files. Since both faq pages are using the same name (unlike the home page), and since each is at root level of its respective domain, both URL's match /disneyfaq.html. So when the request comes in for the redirected multihosted domain's url, Apache does its usual backing up through directories looking for .htaccess files, finds a redirect that matches the requested URL, and does what you tell it to do. Frustrating, eh?

    Easiest solution would be to rename the faq page to something different, like faq.html.

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

  7. #7
    Aletia Customer
    Join Date
    Oct 2001
    Posts
    631
    Thank You, Thank You, Thank You! That was indeed the problem.

  8. #8
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    You're welcome.

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

  9. #9
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,306
    Bingo! Great thought, Jason!

    Glad you worked it out, Joshua!

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
  •