What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Mod_Rewrite help

Mod_Rewrite help
Author: Message:
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
38 / Male / Flag
Joined: Jul 2003
O.P. Mod_Rewrite help
Wondering if anyone can help me with Mod_Rewrite?

I have a domain called Whois setup to point at my main domain, and have this in my .htaccess file:
code:
RewriteCond %{HTTP_HOST} ^(www\.)?whois.mydomain.com
RewriteRule ^$ /whois.php?d=$1 [L]

Now I'm trying to make it so whatever is apended after the domain gets passed as a variable to the script, eg
whois.mydomain.com/google.com would call whois.php?d=google.com

I got a regex to match a domain (/([a-z0-9.-]+\.[a-z]{2,4})/i) but can't get it to work, and am a bit stuck now so wondered if anyone can help.

Any help will be greatly appreciated :-)

SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
10-02-2008 09:11 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Mod_Rewrite help - by Dempsey on 10-02-2008 at 09:11 PM
RE: Mod_Rewrite help - by Mike on 10-03-2008 at 04:01 AM
RE: Mod_Rewrite help - by WDZ on 10-03-2008 at 06:02 AM
RE: Mod_Rewrite help - by Dempsey on 10-03-2008 at 08:13 AM
RE: Mod_Rewrite help - by Forcegames on 10-05-2008 at 10:02 PM
RE: Mod_Rewrite help - by Menthix on 10-05-2008 at 10:19 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On