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:
WDZ
Former Admin
*****

Avatar

Posts: 7106
Reputation: 107
– / Male / Flag
Joined: Mar 2002
RE: Mod_Rewrite help
Tested and working with this .htaccess file:
code:
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{HTTP_HOST} ^(www\.)?whois\.mydomain\.com
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([a-z0-9.-]+\.[a-z]{2,4})$ /whois.php?d=$1 [L,NC]
The second RewriteCond prevents an infinite loop (because the domain regex matches "whois.php"), and the [NC] flag is used instead of the 'i' modifier.
10-03-2008 06:02 AM
Profile 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