Re: gettin parameters from url, architecture question
| From: | Curt Zirzow | Date: | Tue, 05 Aug 2003 16:50:33 +0000 |
| Subject: | Re: gettin parameters from url, architecture question | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-158314@lists.php.net to get a copy of this message | ||
* Thus wrote Merlin (news.groups@web.de):
> they are dynamic. Would it make sence to put all requests to an error
> document? Is this not a huge load for the server?
>
> Lets say I redirect all 401 errors to one php page where I parse the url and
> find the right file to redirect. This would be possible, but I fear that it
> would slow down the server.
Yes, it is an very inefficient way to handle things. I probably
should have added that this isn't a recommended way to do this.
>
> What do you think? Maybe there is another possiblitiy=?
Mod rewrite might be a better alternative:
RewriteRule ^file_html_22.html$ dospamfile.php
HTH,
Curt
--
"I used to think I was indecisive, but now I'm not so sure."