[PHP] 404 redirects stolen by provider

2010-04-09 Thread Merlin Morgenstern
Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs with usernames like this: www.server.com/username The PHP script search_user.php looks in a db if the user name is

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Ashley Sheridan
On Fri, 2010-04-09 at 21:29 +0200, Merlin Morgenstern wrote: Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs with usernames like this:

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Andrew Ballard
On Fri, Apr 9, 2010 at 3:29 PM, Merlin Morgenstern merli...@fastmail.fm wrote: Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs with usernames like this:

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Merlin Morgenstern
Am 09.04.2010 21:53, schrieb Ashley Sheridan: On Fri, 2010-04-09 at 21:29 +0200, Merlin Morgenstern wrote: Hello, I am running a website under apache and php where I do redirects on 404 errors: apache conf: ErrorDocument 404 /subapp_members/search_user.php This is done to allow ULRs with

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Peter Lind
On 9 April 2010 22:20, Merlin Morgenstern merli...@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

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Merlin Morgenstern
Am 09.04.2010 22:58, schrieb Peter Lind: On 9 April 2010 22:20, Merlin Morgensternmerli...@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

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread Peter Lind
On 9 April 2010 23:08, Merlin Morgenstern merli...@fastmail.fm wrote: Am 09.04.2010 22:58, schrieb Peter Lind: On 9 April 2010 22:20, Merlin Morgensternmerli...@fastmail.fm  wrote: This sounds like the best solution to me. The only problem is that my regex knowledge is pretty limited. The

Re: [PHP] 404 redirects stolen by provider

2010-04-09 Thread kranthi
header('HTTP/1.1 200 Ok'); in /subapp_members/search_user.php will do the job -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php