[TYPO3] cooluri pagenotfound
Oliver Rowlands
oliver at liquidlight.co.uk
Fri Aug 8 09:26:56 CEST 2008
Hi Pankaj,
Have you tried dumping the entire $_SERVER array in your 404handle.php
script? It is very possible the 'REDIRECT_URL' is not being set.
You could alternatively try to use:
<behavior type="page">http://www.mydomain.com/404handle.php</behavior>
Ideally though, you should not be redirecting 'page not found' requests,
you should simply return a 404 error code and display the appropriate
error/help message.
Best regards,
Oliver
Pankaj Lele wrote:
> Hello
>
> I have been using extension "cooluri" and it works great. I have a small
> issue though if anybody can give me a suggestion. The issue is that when
> i configure pagenotfound settings to redirect to a URL. The redirect URL
> i have specified is a simple PHP script which looks up
> $_SERVER['REDIRECT_URL'] and finds a matching redirect URL from some rules.
>
> Now when i hit a wrong URL on my site then cooluri redirects the browser
> to the redirect url specified in the xml file. But somehow i can't get
> $_SERVER['REDIRECT_URL'] in my php script.
>
> This scenario seems to work perfectly when i use RealURL.
>
> Here is my lines from CoolUriConf.xml file.
>
> <pagenotfound>
> <status>HTTP/1.0 404 Not Found</status>
> <behavior type="redirect">/404handle.php</behavior>
> </pagenotfound>
>
> Thanks & Regards,
> Pankaj Lele
--
Oliver Rowlands
:: Liquid Light ::
E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk
T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35
More information about the TYPO3-english
mailing list