PDA

View Full Version : Every Subforum in a New Folder


gmarik
06-07-2003, 05:34 AM
Is there a possibility to make every subforum to be located in a subforum, like forum/12, forum/39 and so on? I've seen such a board once and wanted it for myself, no idea, how to do it... :chinese:

Gary King
06-08-2003, 07:11 PM
Do you have a link to an example?

gmarik
06-08-2003, 07:19 PM
It was a sci-fiction board I found via google. Lost the link. Every subforum has a folder with the same id.

Gary King
06-08-2003, 07:35 PM
Why not just create categories for each forum? I'm not exactly sure on what you're looking for.

DrkFusion
06-09-2003, 02:13 AM
Boards use mod_Rewrite or other methods of giving it an effect that the forums are located in individual categories, this is done to make it easier for search engines to crawl

gmarik
06-09-2003, 08:33 AM
Keptic, and could you be so kind writing a mini hack?
No idea how mod_rewrite could be connected to vB...

gmarik
06-09-2003, 01:46 PM
<a href="http://www.sitepoint.com/article/910" target="_blank">http://www.sitepoint.com/article/910</a>

Maybe integrated even with this ...

blackice912
06-10-2003, 07:58 AM
mod_rewrite is fancy and all yeah, but what about us who don't pay an uber $100+ for our site and access to httpd.conf ?

I doubt my host would like it if I said, "yeah, add this stuff to httpd.conf and then restart Apache please. ok good now change that and restart again."

gmarik
06-10-2003, 09:37 AM
I know. But is there an other way?

blackice912
06-10-2003, 10:18 AM
Actually I just figured out you don't need access to httpd.conf

I made a .htaccess file (put it in the base folder of my site) with this:

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^(.*)fid/(.*)$ $1forum/forumdisplay.php?s=&forumid=$2

And it works.
Example: I go to http://www.mysite.net/fid/2 and it calls the forum up in that funky way.

On my site I had to change the style so that every folder path was a FULL url. After I did that, I added a <BASE HREF="http://www.mysite.net/forum/"> to make all links point to the real forum folder.

Needs work, but heck.

gmarik
06-10-2003, 12:19 PM
blackice912, I'll chech it out.
I think it could be hack soon.

No, nothing works on my localhost.
Maybe it's because of Win32? :sleep:

blackice912
06-10-2003, 05:29 PM
What are you running on, IIS or Apache?

amykhar
06-10-2003, 05:59 PM
gmarik, it is a hack that has already been released. And, if mod_rewrite is not enabled, it won't work.

Amy

gmarik
06-11-2003, 09:03 AM
Apache. Amy, what is the name of that hack, never heard of him?!

gmarik
11-09-2003, 01:53 PM
*bump

Gary King
11-09-2003, 01:59 PM
Do you have mod_rewrite available? Use that, heh :)

gmarik
11-12-2003, 02:56 PM
How does the exact .htaccess file looks like, can you copy it here?