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
Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package | GLinks ULTRA Package PRO Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins!