Author Topic: File Link redirects. code 301  (Read 1231 times)

0 Members and 1 Guest are viewing this topic.

jack_2000

  • Guest
File Link redirects. code 301
« on: September 12, 2010, 12:46:04 AM »
Is it possible to make the links that you can place in the file list be accessible like files.
For example http://Http://your_site.com/Newlink   people would be able to enter that url into their address bar and hfs will use a http code 301 ( moved permanently ) to redirect their browser to the actual link of that address.

I'm talking about achieving the same redirect that is possible with .htaccess.
Can i do that in HFS now? Because when i tried i couldn't. If possible can you add this in the future?


Thanks in advance.

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
Re: File Link redirects. code 301
« Reply #1 on: September 12, 2010, 12:59:41 AM »
right click on the vfs and select "New Link"  ;)

jack_2000

  • Guest
Re: File Link redirects. code 301
« Reply #2 on: September 12, 2010, 01:04:37 AM »
I know how to make those. I want them to be accessible by url.

Offline rejetto

  • Administrator
  • Tireless poster
  • *
  • Posts: 12949
    • View Profile
Re: File Link redirects. code 301
« Reply #3 on: September 13, 2010, 05:53:22 AM »
you can with version 2.3
but i suggest you to wait for build #270 because it will support this much easier way, with current build it would be trickier.
that's how you will do it with #270

you make an empty virtual folder with this content for the diff template
{.redirect|http://google.com.}
« Last Edit: September 13, 2010, 05:56:34 AM by rejetto »