rejetto forum

Software => HFS ~ HTTP File Server => Bug reports => Topic started by: DanielC101 on September 30, 2006, 08:06:45 AM

Title: Error in HFS 2.0b, "301 - Moved permanently to..."
Post by: DanielC101 on September 30, 2006, 08:06:45 AM
Hey, I just started using this server. First of all let me say THANKS ALOT, I have been searching for ages for a good server to support my Track and Field Video Zone ( http://72.22.139.174:31028/Track%20and%20Field%20Video%20Zone/ )

However, there is one problem. When other uses access the sub-folders, they get the 301 error. For instance, if they try to access the College folder, they will get:

"301 - Moved permanently to /Track and Field Video Zone/College/"

They can eventually open the folder by clicking on "/Track and Field Video Zone/College/", but I am someone who believes in efficiency, so I would really appreciate it if one of you helped me to get rid of that extra step.

Is there some kind of code in the HTML template that needs to be fixed?

Thanks in advance. :)
Title: Re: Error in HFS 2.0b, "301 - Moved permanently to..."
Post by: DanielC101 on September 30, 2006, 08:15:28 AM
Nevermind, I just solved the problem myself.

[folder]
<tr><td class=row>%new% <a href="%item-url%/"><img align=top src="/~img_folder"> <b>%item-name%</b></a>%comment%<td align=center class=row><i>folder</i><td class="row right">%item-modified%<td class="row right">%item-dl-count%

The problem was caused by the highlighted piece of code. There was no "/" before, but I entered it and everything running fine now.

Thanks again for this wonderful program.
Title: Re: Error in HFS 2.0b, "301 - Moved permanently to..."
Post by: rejetto on September 30, 2006, 10:39:46 AM
i know that is a temp solution
but %item-url% should already include the / itself
if it is missing, then it is a problem