[Typo3]  simulateStatic + 404 - solution
    Dmitry Dulepov 
    typo3 at fm-world.ru
       
    Mon Nov 28 10:51:44 CET 2005
    
    
  
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.
    
    
More information about the TYPO3-english
mailing list