Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2011-04-22 07:32:31

maartenD
Member
From: Warnsveld, The Netherlands
Registered: 2007-12-08
Posts: 47
Website

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

#2 2011-04-22 07:44:43

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

#3 2011-04-28 18:12:19

maartenD
Member
From: Warnsveld, The Netherlands
Registered: 2007-12-08
Posts: 47
Website

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

#4 2011-04-28 20:00:59

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

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

Board footer

Powered by FluxBB