Re: Redirecting from unreachable page on website
| From: | Kyle Terry | Date: | Wed, 21 Jan 2009 18:41:19 +0000 |
| Subject: | Re: Redirecting from unreachable page on website | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-286926@lists.php.net to get a copy of this message | ||
On Wed, Jan 21, 2009 at 10:40 AM, Dušan Novaković <ndusan@gmail.com> wrote:
> apache :-)
>
> 2009/1/21 Kyle Terry <kyle@kyleterry.com>:
>> 2009/1/21 Kyle Terry <kyle@kyleterry.com>:
>>> On Wed, Jan 21, 2009 at 10:12 AM, Dušan Novaković <ndusan@gmail.com> wrote:
>>>> Hi,
>>>>
>>>> Is there some elegant solution how to redirect if someone try to open
>>>> some non existing page (e.g www.domain.com/nonexistingpage.php) to
>>>> main page www.domain.com on website?
>>>>
>>>> thnx, Dusan
>>>>
>>>> --
>>>> made by Dusan
>>>>
>>>> --
>>>> PHP General Mailing List (http://www.php.net/)
>>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>>
>>>>
>>>
>>> Google for "apache 404 redirect" and read around a bit. Checkout the
>>> documentation on apache.org as well.
>>>
>>> --
>>> Kyle Terry | www.kyleterry.com
>>>
>>
>> That was assuming you are using apache by the way. What web server are
>> you using?
>>
>> --
>> Kyle Terry | www.kyleterry.com
>>
>
>
>
> --
> made by Dusan
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
This will be your best friend then.
http://httpd.apache.org/docs/2.2/custom-error.html
--
Kyle Terry | www.kyleterry.com