Registrieren Hilfe Suche Mitgliederliste Wer ist online? Einloggen
Willkommen bei Tritanium Community! Falls dies Ihr erster Besuch hier ist, lesen Sie sich bitte die Hilfe mit den häufigsten Fragen und ausführlichen Erklärungen durch! Falls Sie an den Diskussionen teilnehmen wollen, sollten Sie sich registrieren oder, falls Sie das schon getan haben, sich einloggen. Wir wünschen Ihnen viel Spaß!

Tritanium Community » Other Languages » English » How can I rewrite the url for tbb forum?

Seiten (1) [1] Neue Antwort erstellenNeues Thema erstellen

Autor Thema: How can I rewrite the url for tbb forum?
anphavaomega
Ganz neu hier

ID # 2979



How can I rewrite the url for tbb forum?
giesukito@gmail.com
I want to rewrite the url for tbb, use the file .htaccesse. I read this document http://httpd.apache.org/docs/2.0/misc/rewriteguide.html but don't known how to rewite. Who can help me to do it?

Thanks in advance

Please admin add the translate google on this site to help guest of another contrys.
my site: http://mehangcuugiup.info
Geposted: 30.01.2009 08:57
Julian
Administrator

ID # 1



Re: How can I rewrite the url for tbb forum?
julian@tritanium-scripts.com
Hi,

this is for the TBB2 but it should also work for the TBB1 in a similar way:

This example is for this board, so you probably have to adapt some values:

Code
1
RewriteEngine on
2
RewriteBase   /community/
3
RewriteRule  ^forum/([0-9]+)$ index.php?action=ViewForum&forumID=$1 [L]
4
RewriteRule  ^forum/(.*)$ $1 [L]

What does this mean?
Line 1: Enable rewriting
Line 2: The board is located in the folder "community" (http://www.tritanium-scripts.com/ community /...)
Line 3: URIs of the form "forum/somenumber" are replaced by index.php?action=ViewForum&forumID=somenumber. This means you can go to http://www.tritanium-scripts.com/community/ forum/21 and you are (invisibly) redirected to http://www.tritanium-scripts.com/community/ index.php?action=ViewForum&forumID=21 .
Line 4: For everything else (e.g. urls to images etc.) we have to delete the "forum" prefix. This is important for relative paths produced by the call to http://www.tritanium-scripts.com/community/forum/21 because you webbrowser thinks you are in the subfolder "forum".

You can see the result of this file by going to http://www.tritanium-scripts.com/community/forum/21

And sorry for the language problems, I'm working on it....

-----------
tritanium scripts developer
my private homepage
Geposted: 31.01.2009 14:01

Seiten (1) [1] Neue Antwort erstellenNeues Thema erstellen
Tritanium Bulletin Board 2
© Tritanium Scripts