Log in

View Full Version : Static URLS


younghistorians
07-09-2004, 05:08 PM
Hi all,
I know this has been talked about before, but I am still alittle unclear as to what hack/mod would best suit what im looking for. I'm looking for some hack that will convert all of the board threads/posts into static URLS, such as www.yourforum.com/forum/t9837.html and www.yourforum.com/forum/f12.html

Can anyone recommend a hack to do this?

Thanks,
Vaughn

Andreas
07-09-2004, 05:33 PM
If you are using Apache you could do the following:

.htaccess
RewriteEngine On
RewriteRule t([0-9]+)\.html$ showthread.php?t=$1 [QSA]
RewriteRule f([0-9]+)\.html$ forumdisplay.php?f=$1 [QSA]

Then edit all occurances of forumdisplay.php and showthread.php in the templates accordingly.

younghistorians
07-09-2004, 05:56 PM
thanks, but is'nt there a hack that will do that? (I'm using VB3).

Andreas
07-09-2004, 06:17 PM
There are several Hacks for the archive, but none for the forum IIRC.

cscgal
10-18-2004, 01:38 AM
this should do it ...

http://www.daniweb.com/techtalkforums/thread9379.html

djohn
10-18-2004, 03:37 PM
is there a way to make all forum and thread links look as http://www.site.com/forums/forum/4 for forumid 5 and http://www.site.com/forums/thread/23 for threadid 23 ?