[TYPO3-english] TYPO3 and apache rewrites

Pero Matic takoje at takoje.hr
Thu Oct 21 15:26:37 CEST 2010


"Pero Matic" <pero at matic.com> wrote in message 
news:mailman.1.1287605511.25470.typo3-english at lists.typo3.org...
> Can someone with knowledge of apache rewrites help me here please. I spend 
> all day trying to debug it but no success. I have this rewriterule in 
> virtual host section:
>
> RewriteRule ^/classes(.*)$ /factory/planes/pilots/classes$1
>
> So what i want to accomplish is when somebody writes:
>
> http://mysite.com/classes/page
>
> he gets the page located at:
>
> http://mysite.com/factory/planes/pilots/classes/page
>
> and address in his browser doesn't change - it stays 
> http://mysite.com/classes/page
>
> Now, after i put that rule in apache config, reloaded apache and accessed 
> http://mysite.com/classes/page i get redirected to the http://mysite.com/ 
> with apache status code 302 ???
>
> If i make external redirect like this:
>
> RewriteRule ^/classes(.*)$ /factory/planes/pilots/classes$1 [R]
>
> everything works fine but address in browser is changed to 
> http://mysite.com/factory/planes/pilots/classes/page which is not good for 
> me.
>
> So, anybody have an idea why 302 is sent and why am i being redirected to 
> the /
> Btw. i'm using CoolURI. THX!
>
> Regards.

I found out that the problem is with variable siteScript set by TYPO3 so i'm 
opening new thread called "Rewrite and siteScript".

Regards. 




More information about the TYPO3-english mailing list