Categories

fuchan

New Member
Messages
4
Reaction score
0
Points
0
Ok, I'm Casshern, that's my nickname. FuChan is an image board I'm making, so far so good, until I hit a bump in the road. Here is the problem, if you've been to image boards before, you know they have sub-categories. On my html page, I have this a href command that I want to use to link to a file in a folder under public_html, so I'm thinking, easy as pie, just do this :

[<a href="/Anime/index.pl">/a/</a>]

the link would look like : /a/
and take you to that specific board, but it doesn't quite work. It gives me :

Not Found

The requested URL /anime/index.pl was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8b mod_mono/1.2.6 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at fuchan.exofire.net Port 80

any idea of how to link to a file in a sub folder? ty much.
 

eminemix

Member
Messages
350
Reaction score
0
Points
16
You can't link something under public_html.
But if you are in the path "/foo" and you have a file in it, with the code
Code:
<a href="/../bar.html">bar</a>
you will go to the path "/bar.html" when clicking it.
 

fuchan

New Member
Messages
4
Reaction score
0
Points
0
So, could /../anime/index.pl work if I make a dir at the root named anime? The thing is that, each board uses the same scripting and files. I can't rename those files, so they have to be under seperate folders. Is there a way to link to files in folders? What I'm getting is to link to a file it has to at the root where the public_html dir is, but aren't files only visible to the public that are within public_html?
 
Last edited:

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
try

./anime/index.pl

that is if you are in a folder say /public_html/ and your link was in that folder, it would go to /public_html/anime/index.pl

if you are going from /public_html/anime/index.pl then you would use ./index.pl because you are already in the /anime/ folder
 
Last edited:

fuchan

New Member
Messages
4
Reaction score
0
Points
0
Ty Jake, anime section is officially up at fuchan.exofire.net, check it out and post!
 
Top