[TYPO3] RealURL ignores mod_rewrite internal redirects?

Joseph Mesterhazy jmesterh at iastate.edu
Sat Apr 15 02:01:27 CEST 2006


Hello Typo3 gurus,

I have a working Apache+Typo3 3.8 setup, with realurl installed. I  
would like to use mod_rewrite to internally redirect specific urls,  
but realurl seems to override my internal redirects. For example, I  
have this in my .htaccess in the root of the Typo3 install:

RewriteRule person/([a-z].*) index.php?id=1931&netid=$1 [L]

What this does is internally redirect any URLs of the form 'person/ 
somestring' to 'index.php?id=1931&netid=somestring'.  However,  
realurl is thinking that 'person/somestring' is a page path, and it  
doesn't find it, so the page redirects to a 404.

I do know the internal redirect is working, because if I put this at  
the very top of index.php in the Typo3 site root, the redirects  
suddenly work:

if (ereg('person/', $_SERVER['REQUEST_URI'])) {
         $_SERVER['REQUEST_URI'] = '';
}

Apparently, if $REQUEST_URI has a value, then realurl attempts to  
find that path, instead of using the specific page ID in  
$QUERY_STRING (id=1931&netid=somestring).

Like many things in Typo3, there is probably an obvious solution to  
this problem, but right now I have no idea what it could be.

Can anyone help point me in the right direction?


Many thanks,

Joe
--
Joe Mesterhazy
ECpE UNIX Administrator
2101 Coover Hall, Iowa State University
Ames, IA 50011.  (515) 294-7359




More information about the TYPO3-english mailing list