NYCPHP Meetup

NYPHP.org

[nycphp-talk] FW: rewrite help!

Daniel Kushner nyphp at websapp.com
Sat Apr 5 09:26:45 EST 2003


RewriteRule !\\.(gif|jpg|png|css)$ /home/risoeng/inexact.info/index.php

Would also redirect index.php to index.php! I am sure that this is not what
you want.

Try something adding "NOT index.php" in your regular expression.

Regards,
Daniel Kushner
Vice President, New York PHP
http://nyphp.org
daniel at nyphp.org



> -----Original Message-----
> From: Melissa [mailto:melissa at inexact.info]
> Sent: Friday, April 04, 2003 10:20 PM
> To: NYPHP Talk
> Subject: [nycphp-talk] FW: rewrite help!
>
>
> 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
>
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>
>





More information about the talk mailing list