Xepher.Net Forums

Xepher.net => Technical Support => Topic started by: tapewolf on February 13, 2009, 04:44:39 PM

Title: .htaccess screw-up
Post by: tapewolf on February 13, 2009, 04:44:39 PM
Traditionally I've done redirections using the meta-refresh tag, but since this is generally considered to be a Bad Thing(TM) these days, I decided to try and set up a 301 redirect.  Unfortunately, I got the destination wrong - but it seems to have cached the incorrect destination for good.

Any ideas?  This is something I built for my own testing purposes rather than a critical part of the site, but it is very annoying.
Title: Re: .htaccess screw-up
Post by: Xepher on February 13, 2009, 05:44:17 PM
Shift+refresh the original URL in the browser. There is no caching on the server side for .htaccess options/redirects.
Title: Re: .htaccess screw-up
Post by: tapewolf on February 14, 2009, 10:53:15 AM
Quote from: Xepher on February 13, 2009, 05:44:17 PM
Shift+refresh the original URL in the browser. There is no caching on the server side for .htaccess options/redirects.
That's curious.  I've replaced the 301 directive with a 307, but attempting to access it with wget returns a 301, to the broken URL.
Title: Re: .htaccess screw-up
Post by: Xepher on February 14, 2009, 04:24:50 PM
What URL are you trying? I see two in your .htaccess file, and you can't use the awstats one, as that's been hijacked by the awstats redirect already. The other one seems to work fine:

#curl -I http://project-future.xepher.net/stats/
HTTP/1.1 307 Temporary Redirect
Date: Sat, 14 Feb 2009 16:22:38 GMT
Server: Apache
Location: http://xepher.net/awstats/awstats.pl?config=project-future/


I'm gonna work on getting this working so that everyone's stats will be accessible from their site itself, with just the /awstats/ url added.

UPDATE: Done. http://project-future.xepher.net/awstats/ should work, and so should http://project-future.org/awstats/ (or any other domain you have configured.)
Title: Re: .htaccess screw-up
Post by: tapewolf on February 14, 2009, 05:15:23 PM
Quote from: Xepher on February 14, 2009, 04:24:50 PM
What URL are you trying? I see two in your .htaccess file, and you can't use the awstats one, as that's been hijacked by the awstats redirect already.
Ah.  That would explain everything.

QuoteI'm gonna work on getting this working so that everyone's stats will be accessible from their site itself, with just the /awstats/ url added.

UPDATE: Done. http://project-future.xepher.net/awstats/ should work, and so should http://project-future.org/awstats/ (or any other domain you have configured.)

Thanks very much.