Gossamer Forum
Home : Products : Links 2.0 : Customization :

Rate It Static page

Quote Reply
Rate It Static page
I would like to create static pages for my Rate It links. At the moment each link has a rate it link like
<a href="<%db_cgi_url%>/rate.pl?ID=<%ID%>">

I want to change this to something like
<a href="<%db_cgi_url%>/<%ID%>.html">

The rate it form on this page still needs to work.
Quote Reply
Re: [troyid] Rate It Static page In reply to
You could do this with mod_rewrite. Try something like this (in a .htaccess file);

Code:
RewriteRule ^rate/.*\.html /cgi-bin/rate.pl?ID=$1 [L]

.. and then call with something like;

http://www.yoursite.com/rate/1234.html , and that should then call http://www.yoursite.com/cgi-bin/rate.pl?ID=1234 (as far as the visitor is concerned, they are on a static page Smile).

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