[TYPO3-english] pageNotFound_handling - robot.txt can't be found ...

Xavier Perseguers typo3 at perseguers.ch
Wed Oct 7 08:42:50 CEST 2009


Hi,

> at the moment, I'Ve set
> [pageNotFound_handling]
> http://www.mydomain.tld/index.php?id=129  (which is my 404page)
> 
> [pageNotFound_handling_statheader]
> HTTP/1.0 307 Temporary Redirect
> 
> Because I'm moving from another site and don'T want google to get a 404.
> 
> 
> MY PROBLEM:
> 
> I used to have a robots.txt file in my root. But now, when I try 
> accessing it via mydomain.tld/robots.txt Typo3 of course says "not found!".
> 
> Same for other files I manually put into the root, like sitemap.xml etc.
> 
> What can I do to prevent that? Can I make typo3 only 'catch' onyl 
> certain file types?  like html/htm/pdf/jpg/gif/png ?
> 
> 
> I case anyone asks, here is my htaccess (maybe it's the problem causer):
> 
> RewriteEngine On
> RewriteBase /
^^^^ I don't have this

> RewriteRule 
> ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)$ 
^^^^ I do not start with ^/ but with ^ alone

> - [L]
> RewriteRule 
> ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/.*$ 
> - [L]
^^^^ (why twice?)

RewriteRule ^typo3$ typo3/index_re.php [L]

> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_FILENAME} !-l
> RewriteRule .* index.php
^^^^ I have /index.php instead of index.php

HTH

-- 
Xavier Perseguers
MVC ExtJS Leader

http://forge.typo3.org/projects/show/extension-mvc_extjs


More information about the TYPO3-english mailing list