Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Upgrade to 4.4.0 question concerning /files directory
Hi all,
Just updated to the latest version. There is only one thing i don’t understand:
If you are running an Apache web server, rename the .htaccess-dist file in the /files directory to .htaccess to prohibit direct URL access to your files. Thus the only route to these files becomes through /file_download. We recommend you consider employing this feature
I renamed the .htaccess-dist to .htaccess and found out that the links on my site don’t work anymore. What is the way to make this possible again? What is /file_download? Is it a directory on the server?
Hope somebody can help my.
Thanks in advance.
Last edited by maartenD (2011-04-22 07:33:24)
Kind regards,
Maarten
Offline
Re: Upgrade to 4.4.0 question concerning /files directory
Which links do not work anymore? The only thing affected by that .htaccess file in the /files directory is direct access to those files. When you use TXP tags to add links to files on your website, the URL always contains /file_download. It’s not a real directory, because it’s handled by TXP.
Offline
Re: Upgrade to 4.4.0 question concerning /files directory
Hi Ruud, I created some links directly to some files which are stored in the /files folder. I did this to make it possible to open pdf files in the browser. I didn’t get it working via the <txp:file_download> tags and couldn’t find another way. When i place the .htaccess file in the files folder the links to those files aren’t working anymore, which is quite understandable. Do you have an idea how to solve this problem?
Thanks in advance.
Kind regards,
Maarten
Offline
Re: Upgrade to 4.4.0 question concerning /files directory
If you are the only one uploading files to your website, then remove the .htaccess file from the /files directory.
Offline