Author Topic: .htaccess screw-up  (Read 6382 times)

0 Members and 1 Guest are viewing this topic.

tapewolf

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • Project Future
.htaccess screw-up
« 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.


"The main difficulty is getting [Qa'Dar] out of his cage.
 Far and away the most reliable method I have found is mass-murder." -- The IT-HE guide to Morrowind

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,334
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Re: .htaccess screw-up
« Reply #1 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.

tapewolf

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • Project Future
Re: .htaccess screw-up
« Reply #2 on: February 14, 2009, 10:53:15 am »
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.


"The main difficulty is getting [Qa'Dar] out of his cage.
 Far and away the most reliable method I have found is mass-murder." -- The IT-HE guide to Morrowind

Xepher

  • Techsmith
  • Administrator
  • *****
  • Posts: 4,334
  • Illegitimis non carborundum!
    • View Profile
    • Xepher.net
Re: .htaccess screw-up
« Reply #3 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.)
« Last Edit: February 14, 2009, 04:33:17 pm by Xepher »

tapewolf

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • Project Future
Re: .htaccess screw-up
« Reply #4 on: February 14, 2009, 05:15:23 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.

Quote
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.)

Thanks very much.


"The main difficulty is getting [Qa'Dar] out of his cage.
 Far and away the most reliable method I have found is mass-murder." -- The IT-HE guide to Morrowind