Gossamer Forum
Home : General : Internet Technologies :

Mod rewrite help

Quote Reply
Mod rewrite help
anyone know the rewrite code for gettin...

http://yourdomain.com/members.cgi?user=name

to

http://name.yourdomain.com

It's something very critical, hope somone can help
Quote Reply
Re: [xpert] Mod rewrite help In reply to
Hi,

You could try:

RewriteRule /members.cgi?user=(.*) http://$1.yourdomain.com [R,L]

If it doesn't work, turn on RewriteLog, and set log level to 9 and see what the output is.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Mod rewrite help In reply to
How does mod_rewrite distinguish between the literal . and ? in the URL as opposed to them being used as meta-characters?

Last edited by:

Paul: Dec 7, 2002, 3:58 PM
Quote Reply
Re: [Paul] Mod rewrite help In reply to
Escape them with a \ backslash?

- wil
Quote Reply
Re: [Wil] Mod rewrite help In reply to
Hey Alex code don't work, anyway can you tell me where to set the rewrite log?
Quote Reply
Re: [xpert] Mod rewrite help In reply to
In Reply To:
Hey Alex code don't work, anyway can you tell me where to set the rewrite log?

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