|
Author |
Message |
Iyonix
WebHelper
![WebHelper WebHelper](images/rank_2.gif)
![](images/avatars/gallery/computers/risc_os_cogwheels_small.gif)
Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England
|
Posted:
Thu Nov 14, 2002 2:32 pm (21 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Hello.
How did you do this? I wish to do this on my forums but can't find the mod anywhere.
Thx |
|
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by Iyonix Find all posts by Iyonix](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
Daniel
Team Member
![](images/rank_6.gif)
![](http://www.4webhelp.net/forums/images/daniel_avatar.php)
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Thu Nov 14, 2002 4:54 pm (21 years, 7 months ago) |
![Reply with Quote Reply with Quote](templates/4WebHelp2/images/lang_english/icon_quote.gif) ![Back to Top Back to Top](templates/4WebHelp2/images/icon_up.gif) |
Hi Iyonix,
This is not really a mod. It is a simple .htaccess file in the forums directory, which makes use of the modRewrite Apache module.
Here is the .htaccess file's contents:
Code: | RewriteEngine on
# View Forum
RewriteCond %{REQUEST_URI} ^/forums/([0-9]*).ff
RewriteRule ^(.*) /forums/viewforum.php?forum=%1 [L]
# View Topic
RewriteCond %{REQUEST_URI} ^/forums/([0-9]*).ft
RewriteRule ^(.*) /forums/viewtopic.php?t=%1 [L]
# View Post
RewriteCond %{REQUEST_URI} ^/forums/([0-9]*).fp
RewriteRule ^(.*) /forums/viewtopic.php?p=%1 [L] |
This code can be reused for any type of script, not only for forums. It is usually used to avoid "?" signs in the URL, which can be a problem for search engines. |
________________________________
![Image Image](http://www.4webhelp.net/images/daniel_sig.gif) |
|
![Offline](templates/4WebHelp2/images/offline.gif) ![View User's Profile View User's Profile](templates/4WebHelp2/images/lang_english/icon_profile.gif) ![Find all posts by Daniel Find all posts by Daniel](templates/4WebHelp2/images/lang_english/icon_search.gif) ![Send Personal Message Send Personal Message](templates/4WebHelp2/images/lang_english/icon_pm.gif) |
![](images/spacer.gif) |
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.112549 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |