Skip to the content
Documentation

storage/original missing in RewriteRule

No ratings yet

My file (swf) after the clusterize.php in /var/xxxx/storage/original didn't work. (The files was in the database)
I had to add this RewriteRule :

Rewriterule ^/var/([^/]+/)?storage/original/.*          /index_cluster.php  [L]

++

Comments (2 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. tace care of FilesMatch directive, too

    Gaetano Giunta ·

    If you have used the .htaccess file that comes with the exponential distribution, one step that is not mentioned in the above docs is to fix the fileaccess rule to allow access to the index_cluster.php file, e.g.
    <FilesMatch "(index\.php|index_cluster\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">

    1. Re: tace care of FilesMatch directive, too

      Gaetano ·

      More info on the subject: if the rewrite rules are added to an .htaccess file, or inside a <directory> section in httpd.conf, the regexps are slightly different:
      Rewriterule ^var/([^/]+/)?storage/images-versioned/.* /index_cluster.php [L]
      Rewriterule ^var/([^/]+/)?storage/images/.* /index_cluster.php [L]
      (notice the missing / at the beginning).
      It is also a good idea (at least w. apache 2.2.4) to remove index_cluster.php from the final regexp that redirects all requests into index.php:
      RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf|index_cluster\.php$ index.php