Problems, need help? Have a tip or advice? Post it here.
5 posts Page 1 of 1
I turned PrettyURLs on to test something.
(Enabled in config, generated and uploaded .htaccess)

I then turned them off
(Disabled in config, deleted .htaccess)

Every time I go to the pages, CouchCMS is redirecting me to the prettyURL version of it.
Caching is off, and wasn't on at any point.
Hi,

A probable reason for this could be your browser caching the previous versions of pages (another could be some proxy server between you and the server proper, but I don't suppose your setup is online yet).

I suggest you please try accessing the site using a different browser. If things now seem ok, then try emptying the cache of your original browser and hard-refreshing several times.

Hope it helps.
It does appear to be a browser issue.

Does the redirect when the option is enabled just use a header location redirect or does it actually include a redirect HTTP status code?
The actual code used is this -
Code: Select all
header( "Location: ".$redirect_url, TRUE, 301 );

So it sends a header with the 301 code set.
KK wrote: The actual code used is this -
Code: Select all
header( "Location: ".$redirect_url, TRUE, 301 );

So it sends a header with the 301 code set.


Ah that's why. I'll probably modify my installation to not send the 301 (or send a 307).
I don't know about Chrome or IE, but Firefox seems to cache those, unironically, permanently unless you manually clear the cache.
5 posts Page 1 of 1