Hi,
I tend to use this kind of formatting:
Code:
RewriteEngine On
RewriteRule ^/?$ /cgi-bin/links/page.cgi?g=index.html [L]
RewriteRule ^index.html$ /cgi-bin/links/page.cgi?g=index.html [L]
# CSS/images/other page type rewrites, so they get shown, instead of page.cgi picking them up
RewriteRule (.*)\.css $1.css [L]
RewriteRule (.*)\.php $1.php [L]
RewriteRule ^images/(.*) images/$1 [L]
# stuff so you can call custom templates via yoursite.com/p/template_name.html
RewriteRule ^p/(.*)/? /cgi-bin/links/page.cgi?p=$1 [L]
# detailed pages rewrite
RewriteRule ^Detailed/([0-9]+)\.html$ /cgi-bin/links/page.cgi?g=Detailed/$1.html [L]
RewriteRule ^.*L([0-9]+)/(.*)\.html$ /cgi-bin/links/page.cgi?g=Detailed/$1.html [L]
RewriteRule ^.*L([0-9]+)/?$ /cgi-bin/links/page.cgi?g=Detailed/$1.html [L]
# New, Pop, Ratings etc rewrite rules
RewriteRule ^New/?$ /cgi-bin/links/page.cgi?g=New [L]
RewriteRule ^Ratings/?$ /cgi-bin/links/page.cgi?g=Ratings [L]
RewriteRule ^Cool/?$ /cgi-bin/links/page.cgi?g=Cool [L]
# category page rewrite
RewriteRule ^(.*)/index\.html$ /cgi-bin/links/page.cgi?g=$1/index.html [L]
# more page rewrite rule
RewriteRule ^(.*)/more([0-9]+)\.html$ /cgi-bin/links/page.cgi?g=$1/more$2.html [L]
Hope that helps.
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work! Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500) Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins! Compare our different Plugin packages *new* Free CSS Templates