Re: 404 redirects "stolen" by provider

From: Date: Fri, 09 Apr 2010 20:58:15 +0000
Subject: Re: 404 redirects "stolen" by provider
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-303960@lists.php.net to get a copy of this message
On 9 April 2010 22:20, Merlin Morgenstern <merlin_x@fastmail.fm> wrote: > This sounds like the best solution to me. The only problem is that my regex > knowledge is pretty limited. The command: > RewriteRule ^(.+) /subapp_members/search_user.php > The above rule will try to redirect everything to /subapp_members/search_user.php. If you're looking to allow example.com/username, then use something like: RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /subapp_members/search_user.php?member=$1 [L] This is likely to not do what you want from it, but it's the closest I can guess as to what you want. Have a read of http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html -- <hype> WWW: http://plphp.dk / http://plind.dk LinkedIn: http://www.linkedin.com/in/plind Flickr: http://www.flickr.com/photos/fake51 BeWelcome: Fake51 Couchsurfing: Fake51 </hype>

« previous php.general (#303960) next »