Gossamer Forum
Home : Products : Gossamer Links : Discussions :

mod_rewrite help

Quote Reply
mod_rewrite help

I have the following rewrite rules in my .htaccess:

rewriteengine on
rewriterule portal/(.*) http://localhost:8002/cgi-bin/portal/page.cgi?g=$1 [P,L]
rewriterule ^$ http://localhost:8002/cgi-bin/portal/page.cgi [P,L]

The problem is that it's returning a 404 error :-( But, if I copy the page that it tried to load from the error message (/cgi-bin/portal/page.cgi?g=Business/index.html) onto the end of my domain it loads fine!

What could I be doing wrong? Or why is it giving a 404 when the page is actually there?


BN23.com - LinksSQL powered search and directory.
5.2 Million Links, 685,000 Categories