Hi,
You need to view your site statically - not dynamically. The rewrite rules rules should take your static links and change them to dynamic ones.
To test whether they are working, try changing the [L] to [R] (just for testing). You should then be able to type a static link into your browser address bar and see it change to the correct dynamic address.
I'm not sure that I agree that this is the best set of rewrite rules for a general site. In particular, this rule
RewriteRule ^(.*).html /cgi-bin/choulinks/page.cgi?g=$1.html [L]
will not allow you to have any static html pages in your site. I can't see what the first four rules achieve - maybe Andy could explain why he is using them .
I would think something like this would be enough - where /links/ is the directory that you are using for your links installation.
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^$ /cgi-bin/choulinks/page.cgi [L]
RewriteRule ^/p/(.*)$ /cgi-bin/choulinks/page.cgi?p=$1 [L]
RewriteRule ^/links/(.*)$ /cgi-bin/choulinks/page.cgi?g=$1 [L]
You need to view your site statically - not dynamically. The rewrite rules rules should take your static links and change them to dynamic ones.
To test whether they are working, try changing the [L] to [R] (just for testing). You should then be able to type a static link into your browser address bar and see it change to the correct dynamic address.
I'm not sure that I agree that this is the best set of rewrite rules for a general site. In particular, this rule
RewriteRule ^(.*).html /cgi-bin/choulinks/page.cgi?g=$1.html [L]
will not allow you to have any static html pages in your site. I can't see what the first four rules achieve - maybe Andy could explain why he is using them .
I would think something like this would be enough - where /links/ is the directory that you are using for your links installation.
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^\.htaccess$ - [F]
RewriteRule ^$ /cgi-bin/choulinks/page.cgi [L]
RewriteRule ^/p/(.*)$ /cgi-bin/choulinks/page.cgi?p=$1 [L]
RewriteRule ^/links/(.*)$ /cgi-bin/choulinks/page.cgi?g=$1 [L]