[Typo3] simulateStatic + 404 - solution

Mauro Lorenzutti mauro.lorenzutti at webformat.com
Tue Nov 29 10:52:00 CET 2005


Hi to all,

> Hi!

> Those who want simulateStatic to work with 404 (including Google
> sitemaps verification!) can do the following:
> - set in localconf.php:
> 	$TYPO3_CONF_VARS["FE"]["pageNotFound_handling"] =
> 		'READFILE:/path/to/site/404.html';
> 	$TYPO3_CONF_VARS["FE"]["pageNotFound_handling_statheader"] =
> 		'HTTP/1.0 404 Not found';
>   (make sure you point to existing file!)
> - change .htaccess from
> 	RewriteRule ^[^/]*\.html$ index.php [L]
>   to
> 	RewriteRule ^[^/]*\.\d+\.\d+\.html$ index.php [L]

> Now it will return proper headers and work with Google sitemap
> verification also.

> Dmitry.

I tried and found that this solution works correctly with TYPO3
3.7 but not with 3.8. In TYPO3 3.8 the file .htaccess has been
modified a lot and the simple rule you suggested to change doesn't
exist.
I understand the new rule you've proposed and I think it's correct and
will be correct for 3.8 too. But I can't make it working... (I've got to
say I'm not expert about apache configuration). Am I making any
mistake? Does anyone have any idea?

Best regards,
 Mauro Lorenzutti


e-mail:  mauro.lorenzutti at webformat.com

---------------------------------------------------------
WEBFORMAT srl | Corte Europa, 12 | I-33097 SPILIMBERGO PN
     Tel +39-0427-926.389  --  Fax +39-0427-927.653
       info at webformat.com  --  www.webformat.com
---------------------------------------------------------




More information about the TYPO3-english mailing list