Support Forums
My site links to directories, not files? - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18)
+---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21)
+---- Thread: My site links to directories, not files? (/showthread.php?tid=24352)

Pages: 1 2


My site links to directories, not files? - GmaN™ - 01-05-2012

Hey There,

Quick question to ask.

Might sound stupid, but it's tricked my mind and I can't figure out what the problem is.

My website, (gtamarket.com) runs on 'Tiny BBS' which is similar to an anonymous forum. The site was just registered two days ago I believe, and I'm stuck with a problem that I can't seem to figure out.

The links on my header all 404 because they seem to be linking to directories instead of the php files there supposed to be assigned too.

(i.e Clicking 'New Topic' links to gtamarket.com/new_topic/ when it is supposed to link to gtamarket.com/new_topic.php)

Does anyone know how to solve this problem?
I'm thinking it may be an issue with the .htaccess, but I want to be sure.

Thanks,
Your help is greatly appreciated.


RE: My site links to directories, not files? - AceInfinity - 01-05-2012

Maybe because your links don't include the extensions? (.php/.html/ect)

Add them, then post a reply and tell me how well that worked lol Victoire

For example your link for "Hot" is this:
Code:
http://gtamarket.com/hot_topics

When it should be this:
Code:
http://gtamarket.com/hot_topics.php

Go and change them.


RE: My site links to directories, not files? - Peter L - 01-05-2012

When I click on "Hot" it links me here: http://gtamarket.com/hot_topics.php
But when I click on New Topics I see the issue.

Go into ftp and manually change it I'd say. I've never worked with this forum software (I doubt many have).


RE: My site links to directories, not files? - AceInfinity - 01-05-2012

(01-05-2012, 10:04 PM)Laugh Wrote: When I click on "Hot" it links me here: http://gtamarket.com/hot_topics.php
But when I click on New Topics I see the issue.

Go into ftp and manually change it I'd say. I've never worked with this forum software (I doubt many have).

Now it does, but he's definitely been working on it before you replied, as it didn't for me before, however now it does link me to the correct page. He just needs to work through the rest of them. At least now he's starting to understand how to link to different pages though properly.


RE: My site links to directories, not files? - GmaN™ - 01-05-2012

(01-05-2012, 09:56 PM)AceInfinity Wrote: Maybe because your links don't include the extensions? (.php/.html/ect)

Add them, then post a reply and tell me how well that worked lol Victoire

For example your link for "Hot" is this:
Code:
http://gtamarket.com/hot_topics

When it should be this:
Code:
http://gtamarket.com/hot_topics.php

Go and change them.

Seemed to work, except for the 'New Topic' link.

When it goes to the page, it needs to have an ID number so the post has its unique ID.
Try it out, you will know what I mean.




RE: My site links to directories, not files? - AceInfinity - 01-05-2012

That's not related to the links, that's related to a PHP file behind the New topic form or whatever you have. What's the New Topic link for?


RE: My site links to directories, not files? - GmaN™ - 01-05-2012

(01-05-2012, 10:28 PM)AceInfinity Wrote: That's not related to the links, that's related to a PHP file behind the New topic form or whatever you have. What's the New Topic link for?

Well it creates a thread basically, but gives the thread a unique ID for the URL.
So If it worked and I created the first thread, I believe the url is supposed to be something like gtamarket.com/1.php

I don't know which file would be causing the trouble. ;/


RE: My site links to directories, not files? - AceInfinity - 01-05-2012

A thread where? If you wanted a forum I would have just installed one lol


RE: My site links to directories, not files? - GmaN™ - 01-05-2012

(01-05-2012, 10:48 PM)AceInfinity Wrote: A thread where? If you wanted a forum I would have just installed one lol

Think I might just stick with MyBB, haha.


RE: My site links to directories, not files? - AceInfinity - 01-05-2012

(01-05-2012, 11:00 PM)GmaN™ Wrote: Think I might just stick with MyBB, haha.

It would be much easier, and it should help with the organization as well, instead of having all the posts on a single page. If you need help integrating it with a parent site and you want a forum on the side, then just ask me, or post about it, and i'll try to help you out from there, as well as other people i'm sure.