|
Author |
Message |
Iyonix
WebHelper
Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England
|
Posted:
Thu Nov 14, 2002 2:32 pm (21 years, 5 months ago) |
|
Hello.
How did you do this? I wish to do this on my forums but can't find the mod anywhere.
Thx |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Thu Nov 14, 2002 4:54 pm (21 years, 5 months ago) |
|
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. |
________________________________
|
|
|
|
|
|
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.209805 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |