Skip to content

Redirection error for tmp files in .htaccess #4

@biocyberman

Description

@biocyberman

There is an bug in <metarep_home_dir>/.htaccess which leads to following 404 error:



Not Found

Error: The requested address '/tmp/jcvi_metagenomics_report_timestamp_hclust_plot.pdf' was not found on this server.

This is my <metarep_home_dir>/.htaccess file's content:



   RewriteEngine on
   #Exclude METAREP_TMP_DIR tempt dir, pdf files and txt files from redirection
   RewriteRule ^(tmp|.*\.pdf|.*\.txt) - [L]
   RewriteBase /metarep
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]

Without the added line, users always get 404 error when trying to generate plots, unless they put temp folder inside <metarep_home_dir>/app/webroot

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions