![]() |
URL redirect not working in Safari and Chrome...why? - Printable Version +- MacResource (https://forums.macresource.com) +-- Forum: My Category (https://forums.macresource.com/forumdisplay.php?fid=1) +--- Forum: Tips and Deals (https://forums.macresource.com/forumdisplay.php?fid=3) +--- Thread: URL redirect not working in Safari and Chrome...why? (/showthread.php?tid=105468) |
URL redirect not working in Safari and Chrome...why? - The UnDoug - 10-26-2010 I have a website: http://www.artmuseumarea.com that has a redirect in its index.html file. So rather than loading www.artmuseumarea.com/index.html, that page actually redirects to: www.artmuseumarea.com/cgi-bin/index.cgi This works fine in Firefox and Internet Explorer (I'm on a PC at work), but doesn't work in Safari or Chrome. I believe this is the same behavior seen on my Mac at home. Any idea what the deal is? Here's what I use for the redirect: <meta http-equiv=Refresh Content="0 url=http://www.artmuseumarea.com/cgi-bin/index.cgi"> Re: URL redirect not working in Safari and Chrome...why? - Seacrest - 10-26-2010 <meta http-equiv=Refresh Content="0 url=http://www.artmuseumarea.com/cgi-bin/index.cgi"> Re: URL redirect not working in Safari and Chrome...why? - The UnDoug - 10-26-2010 Hmmm....that's probably all it was. In the meantime, though, I found a solution to put a redirect in an .htaccess file, and that seems to have done the trick. I may see if it was just the semicolon. Thanks, Seacrest! Re: URL redirect not working in Safari and Chrome...why? - Seacrest - 10-26-2010 I would also suggest using mod_rewrite instead of redirects, if possible. That way you can route all your requests to your cgi, but keep pretty URLs, like http://artmuseum.com/rocky-statue.html instead of http://artmuseum.com/cgi-bin/articles.cgi?page=rocky%20statue |