[TYPO3] pageNotFound_handling - 404 error
Steffen Müller
steffen at mail.kommwiss.fu-berlin.de
Sat Feb 4 13:57:52 CET 2006
On 01.02.2006 13:38 Dmitry Dulepov wrote:
>
> Than just use mod_rewrite. I am not a guru in it but there are
> directives to test if file/directory exists or not and redirect
> appropriately. See in example .htaccess, which is supplied with typo3.
>
We solved this with some modified mod_rewrite in .htaccess:
# (...)
# For use with the RealUrl extension, you might need to remove the
# RewriteBase directive somewhere above and use this line instead of the
# next one:
#RewriteRule .* /index.php [L]
# This one will send 404 to anything containing one or more slahses /
# Only valid URLs are PATH/xxx.html
RewriteRule /+ - [L]
RewriteRule \.html$ index.php [L]
--
cheers,
Steffen
More information about the TYPO3-english
mailing list