SitePoint Sponsor

User Tag List

Results 1 to 10 of 10
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    180
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question htaccess redirect not working IE9

    I have a simple htaccess code:

    Code HTML4Strict:
    Options +FollowSymlinks
    RewriteEngine on
     
    ErrorDocument 404 /index.php
     
     
    redirect /plane [url]http://www.bing.com[/url]
    redirect /airport [url]http://www.questionwritertracker.com/quiz/15101/TF4HQEPM.html[/url]


    it works in Firefox and Chrome but when i try with IE9 it redirects to the old cache (old link that we had) it should realy go to bing.com

    you can test here just click on the plance top left:
    HTML Code:
    http://travelquizvillage.com/

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    hay,

    IE9's cache is a common problem with IE from ... well, bear skins and stone knives. It loves to cache pages and will not let go unless you clear your cache. All the more reason to use a good browser, isn't it?

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,899
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    In all fairness to hayem, I've just tested his page in IE9 as well, and shows the same behavior for me, while I've never been to his page so it can't be a caching issue.
    I really have no idea what's going on here.

    What is the exact URL that the browser is redirected to when you click the airplane?
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  4. #4
    SitePoint Zealot
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    180
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    plane should go to bing.com this is the complete htaccess file

    HTML Code:
    Options +FollowSymlinks
    RewriteEngine on
     
    ErrorDocument 404 /index.php
    
    redirect /plane http://www.bing.com
    redirect /airport http://www.questionwritertracker.com/quiz/15101/TF4HQEPM.html
    redirect /watertower http://www.questionwritertracker.com/quiz/15387/DZFTFZXP.html
    redirect /postman http://www.questionwritertracker.com/quiz/9915/P39W6T96.html
    redirect /smallhouse http://www.questionwritertracker.com/quiz/9916/WZ943833.html
    redirect /train http://www.questionwritertracker.com/quiz/10283/ZMYY8DD4.html
    redirect /newspaper http://www.questionwritertracker.com/quiz/15388/M7772T6X.html
    redirect /musical http://www.questionwritertracker.com/quiz/9917/Y9D9WCWA.html
    redirect /space http://www.questionwritertracker.com/quiz/9918/K87PDHGP.html
    redirect /stadium http://www.questionwritertracker.com/quiz/9920/FAT9MGB4.html
    redirect /drivein http://www.questionwritertracker.com/quiz/9921/WBJG66HE.html

  5. #5
    Utopia, Inc. silver trophy
    ScallioXTX's Avatar
    Join Date
    Aug 2008
    Location
    The Netherlands
    Posts
    8,899
    Mentioned
    138 Post(s)
    Tagged
    2 Thread(s)
    Let me repeat:

    Quote Originally Posted by ScallioXTX View Post
    What is the exact URL that the browser is redirected to when you click the airplane?


    It looks like that link is in a flash, so I can't see what link is behind that.
    Rémon - Hosting Advisor

    Minimal Bookmarks Tree
    My Google Chrome extension: browsing bookmarks made easy

  6. #6
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    Rémon,

    It is and the link is not displayed (which is WHY Rémon's asked for it, hayem). FF opens the Bing page so, if IE9 doesn't, it's a quirk in the way that you're written the link OR it's a quirk of IE.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  7. #7
    SitePoint Zealot
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    180
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    this is how it's written in Flash

    http://travelquizvillage.com/plane

  8. #8
    SitePoint Zealot
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    180
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    i guess even if i use prettylinks wordpress plugin will have the same problem?
    any solution where we can change links without touching the flash files?

  9. #9
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,605
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)
    hayem,

    My only thought is that IE doesn't like that you've not supplied a status code with your redirect statement (although it is supposed to be optional - and default to 302, a temporary redirect). I'd insert 301 after "redirect" and before the URI to be redirected and see what happens.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  10. #10
    SitePoint Zealot
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    180
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    did not work

    PHP Code:
    Options +FollowSymlinks
    RewriteEngine on

    ErrorDocument 404 
    /index.php


    redirect 301 
    /plane http://www.bing.com
    redirect 301 /airport http://www.bing.com
    redirect 301 /watertower http://www.questionwritertracker.com/quiz/15387/DZFTFZXP.html
    redirect 301 /postman http://www.questionwritertracker.com/quiz/9915/P39W6T96.html 
    i have tried airport also the same problem.
    last solution will be to enter inside the flash a page link like: http://travelquizvillage.com/?page_id=24 and on the page add a link.when the page opens let the user click on the link to participate.


Tags for this Thread

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
  •