David Beroff (d4b) wrote,
David Beroff

Head in the Cloud

While I've been updating .htaccess files, I've noticed that server-side file changes are (understandably) cached on Rackspace Cloud Sites, which makes iterative testing a bit challenging. :-) I came up with a little hack to ensure that I'm using the right .htaccess file:
# Start with special case to ensure we're using the latest file.
# Return unique response for a version request:
RewriteCond %{REQUEST_URI} /htaccess-version [NC]
RewriteRule ^(.*)$ /ver-121208-0614 [R=302,L,QSA]
Tags: mtat, webdev
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.