Re: Apache RewriteRule Help!!!!

From: Date: Fri, 13 Jun 2008 14:23:29 +0000
Subject: Re: Apache RewriteRule Help!!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-275328@lists.php.net to get a copy of this message
On Fri, Jun 13, 2008 at 4:11 AM, Miguel J. Jiménez <MiguelJose.Jimenez@isotrol.com> wrote: > > How can I make apache work fine with > "http://foo/INDEX/mp3" and > redirect to an error page (or moved url or wahtever) > with "http://foo/INDEX/index.php?m=mp3" (from the > client view) You can start by asking your question on an Apache list. This has nothing to do with PHP. ;-P To answer your question, use this in your .htaccess file: RewriteCond %{SCRIPT_FILENAME} index RewriteCond %{QUERY_STRING} ^[a-zA-Z0-9] RewriteRule .* http://www.yourdomain.com/404.php [L] Next time, though, please try to ask questions on the appropriate lists.. -- </Daniel P. Brown> Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo.

« previous php.general (#275328) next »