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
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!