FW: rewrite help!
Melissa
melissa at inexact.info
Fri Apr 4 22:20:06 EST 2003
Guys, not to be a pain or anything, but does anyone have any thoughts on
this matter?
-----Original Message-----
From: Melissa [mailto:melissa at inexact.info]
Sent: Thursday, April 03, 2003 7:16 PM
To: talk at nyphp.org
Subject: rewrite help!
Sorry if this is a little off topic, but i was hoping to get some help with
a mod_rewrite problem. I used a statement in my .htaccess with an error
that caused an infinite loop, and understandably my host got a bit peeved.
If I get it wrong again, they may cancel my account - the problem being,
that I think I have the error corrected, but I don't want to risk testing it
and losing my hosting.
What I am trying to do is to make everything redirect to /index.php: so
http://inexact.info/this/that would go to http://www.inexact.info/index.php
where lives php that would make use of /this/that as variables - thus
avoiding having urls like inexact.info/index.php?var1=this&var2=that.
Is the following correct to put in .htaccess and achieve this goal, or will
it simply loop infinitly and cause me to get booted from dreamhost?
RewriteEngine on
RewriteRule !\\.(gif|jpg|png|css)$ /home/risoeng/inexact.info/index.php
Thanks,
Melissa
More information about the talk
mailing list