News:

The anti-spam plugins have stopped being effective. Registration is back to requiring approval. After registering, you must ALSO email me with your username, so that I can manually approve your account.

Main Menu

.htaccess screw-up

Started by tapewolf, February 13, 2009, 04:44:39 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

tapewolf

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

Shift+refresh the original URL in the browser. There is no caching on the server side for .htaccess options/redirects.

tapewolf

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.


"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

#3
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.)

tapewolf

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.


"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