You are here: Re: Help: If isset query_string return 404 « PHP Programming Language « IT news, forums, messages
Re: Help: If isset query_string return 404

Posted by wd on 03/01/06 02:36

On Sun, 19 Feb 2006 00:47:41 +0000, Peter Fox wrote:

> Ooo err!
>
> Shouldn't you be returning 404 if foo doesn't exist when asked for with
> index.php?p=foo rather than any ?p=... ? What happens if Joe Bloggs
> types in one of the offending ?p=... or a valid ?p=... How do you
> distinguish those cases?

No need... .htaccess rewrites all urls for legitimate pages. If you ask
for anything with a ? in the URL you now get a 404. If you ask for the
rewritten URLs (no question mark), you get the correct pages.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация