You are here: Re: issue with htaccess and getenv('REQUEST_URI')-please help « All PHP « IT news, forums, messages
Re: issue with htaccess and getenv('REQUEST_URI')-please help

Posted by - Dazed on 09/28/18 11:43

- Dazed <user@name.com> wrotc:

>- Dazed <user@name.com> wrotc:
>
>>If I add the following line:
>>ErrorDocument 404 /404.php
>>into my .htaccess file, it screws up the value returned by:
>>getenv('REQUEST_URI')
>>
>>getenv('REQUEST_URI') returns scripts.gif instead of the actual
>>filename such as index.php
>>
>>Anyone have any idea why this might be happening???
>
>The value being returned is the name of the last image displayed
>index.php instead of the name of index.php.
>Everything is fine when I don't have ErrorDocument 404 /404.php in the
>.htaccess file

Figured it out!!!

 

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

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