Gossamer Forum
Home : General : Internet Technologies :

some mod_rewrite help

Quote Reply
some mod_rewrite help
is it possible to use mod_rewrite to:

http://www.domain.com/cgi-bin/jump.cgi?ID=1

to

http://www.domain.com/cgi-bin/jump?1

http://domain.com/cgi-bin/jump.cgi?ID=1

to

http://domain.com/cgi-bin/jump?1

If any one know the right strings, it'll be great!
Quote Reply
Re: [xpert] some mod_rewrite help In reply to
What codes have you tried?

The following docs may help....

http://httpd.apache.org/...mod/mod_rewrite.html

http://www.geocrawler.com/...92/2000/6/0/3967339/
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Stealth] some mod_rewrite help In reply to
I read the the guide at apache already, but just couldn't figure it out, some part of the tutorial is kinda confusing for me to comprehend!
Quote Reply
Re: [xpert] some mod_rewrite help In reply to
Code:
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} jump\.cgi\?\d+$
RewriteRule jump\.cgi\?(\d+)$ http://www.yourdomain.com/cgi-bin/jump.cgi?ID=$1 [L]

I just got out of bed so I may be waaaay off.

Last edited by:

Paul: Aug 12, 2002, 3:07 AM
Quote Reply
Re: [Paul] some mod_rewrite help In reply to
Thank you very much for helping, Paul. Unfortunately even after i add in the code and and restart apache, i tried the form jump?1 but the server returns page cannot be found! anymore help would be appreciated!
Quote Reply
Re: [xpert] some mod_rewrite help In reply to
You did change the domain etc?.....hm it's probably just a bad rewrite :(

Last edited by:

Paul: Aug 13, 2002, 2:22 AM
Quote Reply
Re: [Paul] some mod_rewrite help In reply to
Yeah, i changed the domain to my domain. Still couldn't figure this out, hmm hope some others have a similar need before, and came up with the right code already!