Clean URLs vs Downloadable FTP files
Hello Berta and everyone!
I have an issue when URLs are clean, but I'm unable to download
files from FTP. And vice versa.
I asked my hosting and they made some coding with .htaccess — dot remains, files are downloadable, but no Clean Urls! In this case they say to ask authors of Berta.
So the question is: How to have both functions?
Thank you very much in advance.
Berta is a really great tool, I'm in-love!
Alexander
www.sasz.info
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by karlis on Aug 22, 2012 @ 10:21 AM
Hi,
I assume you mean downloading files directly (as FTP ignores .htaccess and url rewriting).
Anyway, what do you want to achieve? I can change the .htaccess file so that you can have a folder (named "downloads") and then everything in that folder is directly accessible. Removing url rewriting altogether and allowing direct access to your /storage folder is a security risk.
Best regards,
Karlis / Berta Team
karlis closed this discussion on Aug 22, 2012 @ 10:21 AM.
av.kondrat re-opened this discussion on Aug 22, 2012 @ 12:18 PM
2 Posted by av.kondrat on Aug 22, 2012 @ 12:18 PM
Hi Karlis,
Thanks, you've made me to think about security reason, I've learnt how it's better to do with ftp protocol. But I'd still like some files to be accessible. For example if I want to publish downloadable pdf, picture (linked in html code) and so on. And if you can make a .htacess file for "downloads" folder — will be great! (Will it be safe?)
Thanks!
Alexander
3 Posted by karlis on Sep 09, 2012 @ 09:27 AM
Here you go. Yes, it is safe if your webhost has turned autoindex/directory listing off. You can test this by creating a downloads folder, adding a couple of files and then opening the /downloads from web browser, if it lists all directory content then it is not safe. If it says Forbidden or Not Found then it is OK. :)
Replace the .htaccess file on your server with the attached one.
Best regards,
Karlis / Berta Team
karlis closed this discussion on Sep 09, 2012 @ 09:27 AM.