4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 [Answered] www.4webhelp.net/forums/nnnn.fp
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Iyonix
WebHelper
WebHelper


Joined: 12 Nov 2002
Posts: 82
Location: Yarm, England

PostPosted: Thu Nov 14, 2002 2:32 pm (15 years, 1 month ago) Reply with QuoteBack to Top

Hello.

How did you do this? I wish to do this on my forums but can't find the mod anywhere.

Thx
OfflineView User's ProfileFind all posts by IyonixSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Nov 14, 2002 4:54 pm (15 years, 1 month ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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.065226 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme