chatiman wrote:
> "Justin Koivisto" <spam DeleteThis @koivi.com> a écrit dans le message de news:
> tH7Xb.310$sS3.8922@news7.onvoy.net...
>
>>chatiman wrote:
>>
>>>How do you rewrite links of the form:
>>>index.cgi?param1=value1¶m2=value2
>>>to make them google friendly ?
>>
>>If index.cgi is <a style='text-decoration: underline;' href="http://www.exmaple.com/index.cgi" target="_blank">http://www.exmaple.com/index.cgi</a> ...
>>
>>In the HTML, generate links as (for example)
>>http://www.exmaple.com/value1/value2 or
>>http://www.exmaple.com/value1/value2/
>>
>>Then use:
>>RewriteRule ^([^/]+)(/([^/]+))?(/([^/]+))?(/([^/]+))?/?$
>>index.cgi?param1=$1¶m2=$3¶m3=$5¶m4=$7 [L,NS,QSA]
>>
>>You'll just need to sure that the order of the paramaters are correct
>>when generating your links.
>>
> Can i just use
> <a style='text-decoration: underline;' href="http://www.example.com/param1=value1/param2=value2" target="_blank">http://www.example.com/param1=value1/param2=value2</a> for links ?
Sure, it's your site, do it however you want. You'll just need to adjust
the Rewrite Rule:
index.cgi?$1&$3&$5&$7 [L,NS,QSA]
should work, but not tested...
--
Justin Koivisto - spam DeleteThis @koivi.com
PHP POSTERS: Please use comp.lang.php for PHP related questions,
alt.php* groups are not recommended.
Official Google SERPs SEO Competition: <a style='text-decoration: underline;' href="http://www.koivi.com/serps.php" target="_blank">http://www.koivi.com/serps.php</a><!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Rewrite rules