RewriteEngine  on
RewriteBase    /
RewriteRule    $.* index.php

----Original Message Follows----
From: "SHEETS,JASON (Non-HP-Boise,ex1)" <[EMAIL PROTECTED]>
To: "'[ rswfire ]'" <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: RE: [PHP] Would this work? (mod_rewrite)
Date: Wed, 17 Apr 2002 18:29:25 -0400

And I fall victim to my own stupidity/cache again.

You actually want


RewriteEngine on
RewriteBase /
RewriteRule ^$ index.php

This works for me on my domain, you can check it out by going to
http://demo.shadotechdesigns.com and http://bug.shadonet.com

Jason

-----Original Message-----
From: [ rswfire ] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 4:20 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Would this work? (mod_rewrite)


This rewrite thing will actually be very good for me; my error log file will

stop having a million "file not found" errors  :-)

I have to tell you guys, I love JTL Networks.  They are the best host I have

ever had ever!


----Original Message Follows----
From: Miguel Cruz <[EMAIL PROTECTED]>
To: "[ rswfire ]" <[EMAIL PROTECTED]>
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] Would this work? (mod_rewrite)
Date: Wed, 17 Apr 2002 17:14:13 -0500 (CDT)

Do you have access to your server's error_log file? With any luck there'll
be a more informative message there (something like "Miguel was too lazy
to pay sufficient attention to the following Rewrite caveat: xxxxxxx").

miguel

On Wed, 17 Apr 2002, [ rswfire ] wrote:

  > mod_bwlimited, mod_php4, mod_log_bytes, mod_frontpage, mod_ssl,
  > mod_setenvif, mod_so, mod_auth, mod_access, mod_rewrite, mod_alias,
  > mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir,
  > mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime,
  > mod_log_config, mod_env, http_core
  >
  >
  > ----Original Message Follows----
  > From: Miguel Cruz <[EMAIL PROTECTED]>
  > To: "[ rswfire ]" <[EMAIL PROTECTED]>
  > CC: [EMAIL PROTECTED]
  > Subject: Re: [PHP] Would this work?  (mod_rewrite)
  > Date: Wed, 17 Apr 2002 16:55:33 -0500 (CDT)
  >
  > On Wed, 17 Apr 2002, [ rswfire ] wrote:
  >  > Assume I want *.domain.*/*.* to automatically call index.php (without
the
  >  > user knowing and without any redirecting at all):
  >  >
  >  > RewriteEngine  on
  >  > RewriteBase    /
  >  > RewriteRule    *.* index.php [R]
  >  >
  >  > I don't know what in the world the [R] is, but it's in almost all of
the
  >  > mod_rewrite examples...  :-)
  >
  > RewriteRule * index.php
  >
  > Don't use the [R] - that tells it to create an external redirect. It's
  > used in many of the examples because in many real-world cases people are
  > using rewrite rules to coax invalid URLs into valid ones, and this way
  > there's at least some chance that the bad ones will get updated.
  >
  > miguel
  >
  >
  >
  >
  >
  > _________________________________________________________________
  > Send and receive Hotmail on your mobile device: http://mobile.msn.com
  >
  >
  >





_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to