rejetto forum

Error in HFS 2.0b, "301 - Moved permanently to..."

Guest · 3 · 3312

0 Members and 1 Guest are viewing this topic.

DanielC101

  • Guest
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. :)


DanielC101

  • Guest
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.


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i know that is a temp solution
but %item-url% should already include the / itself
if it is missing, then it is a problem