I don't know what the heck is wrong with me, but I just can't get this mod_rewrite thing to work. I've checked with my web host and they've assured me it's installed and enabled. I have installed the search engine templates, and I've got the following in an .htaccess file in my /site/support directory, which is the one I'd like to mirror the actual forum:
RewriteRule ^/site/support/.*P([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?post=$1&t=search_engine [L]
RewriteRule ^/site/support/.*P([0-9]+)-([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?post=$1&page=$2&t=search_engine [L]
RewriteRule ^/site/support/.*C([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?category=$1&t=search_engine [L]
RewriteRule ^/site/support/.*F([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?forum=$1&t=search_engine [L]
RewriteRule ^/site/support/.*F([0-9]+)-([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?forum=$1&page=$2&t=search_engine [L]
RewriteRule ^/site/support/?$ /site/cgi-bin/support/gforum.cgi?t=search_engine [L]
RewriteRule ^/site/support/.*gforum.cgi /site/cgi-bin/support/gforum.cgi?%{QUERY_STRING} [R,NE,L]
The thing is, I keep getting 500 Internal Server Errors! Does anyone know why this could be happening? I've tried tinkering with the file and the one vaguely interesting thing I've discovered is that If I remove the very last line but keep all the others, I no longer get the 500 errors, but I also don't get any forum pages - just an empty directory listing or 404 errors.
Thanks in advance for any advice.
Best regards,
Adam
Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund
Code:
RewriteRule ^/site/support/.*P([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?post=$1&t=search_engine [L]
RewriteRule ^/site/support/.*P([0-9]+)-([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?post=$1&page=$2&t=search_engine [L]
RewriteRule ^/site/support/.*C([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?category=$1&t=search_engine [L]
RewriteRule ^/site/support/.*F([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?forum=$1&t=search_engine [L]
RewriteRule ^/site/support/.*F([0-9]+)-([0-9]+)/?$ /site/cgi-bin/support/gforum.cgi?forum=$1&page=$2&t=search_engine [L]
RewriteRule ^/site/support/?$ /site/cgi-bin/support/gforum.cgi?t=search_engine [L]
RewriteRule ^/site/support/.*gforum.cgi /site/cgi-bin/support/gforum.cgi?%{QUERY_STRING} [R,NE,L]
The thing is, I keep getting 500 Internal Server Errors! Does anyone know why this could be happening? I've tried tinkering with the file and the one vaguely interesting thing I've discovered is that If I remove the very last line but keep all the others, I no longer get the 500 errors, but I also don't get any forum pages - just an empty directory listing or 404 errors.
Thanks in advance for any advice.
Best regards,
Adam
Fractured Atlas :: Liberate the Artist
Services: Healthcare, Fiscal Sponsorship, Marketing, Education, The Emerging Artists Fund