View Single Post
08-08-2008, 05:01 AM
#8
uNiT is offline uNiT
Status: I'm new around here
Join date: Aug 2008
Location:
Expertise:
Software:
 
Posts: 17
iTrader: 0 / 0%
 

uNiT is on a distinguished road

  Old

Tip for those using dynamic pages:

A simple mod_rewrite rule in your .htaccess file will make your dynamic link a static one..sort of. Example:
Code:
Options +FollowSymLinks
AddDefaultCharset UTF-8

RewriteEngine on
RewriteRule ^articles/([^/\.]+)/?$ index.php?articles=$1 [L]
With that, if a user went to yoursite.com/articles/today , the server would see it as yoursite.com/index.php?articles=today without even redirecting the user

You can google for more information on apache's mod_rewrite, it's an incredibly useful function