Fragment cache creates folder for each URL

I’ve got a site that uses fragment cache stored in tmp/cache.
When you access it as http://www.site.com it creates a folder
tmp/cache/www.site.com.

Likewise, when you access it http://site.com it creates af older
tmp/cache/site.com

I believe it does the same with sessions, though I store those in the
DB. How do I go about fixing this? Can i redirect using .htaccess or
Webmin?

On Thursday 10 August 2006 06:45, JazzIs wrote:

I’ve got a site that uses fragment cache stored in tmp/cache.
When you access it as http://www.site.com it creates a folder
tmp/cache/www.site.com.

Likewise, when you access it http://site.com it creates af older
tmp/cache/site.com

I believe it does the same with sessions, though I store those in the
DB. How do I go about fixing this? Can i redirect using .htaccess or
Webmin?
afaik you need to address this at the web server and redirect all
requests for
http://site.tld to http://www.site.tld

e.g. htaccess

Redirect 301 / http://www.site.tld/

which permanently redirect all requests

better for your seo too

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs