[TYPO3-english] .htaccess redirect

Xavier Perseguers typo3 at perseguers.ch
Wed Oct 29 12:11:56 CET 2008


Hi,

> so now there are two points left :
> 
>    1. how to avoid dupliacte contents of "www.abc.com/de/about us" and "
>    www.abc.com/de/about us/". only one of both should go.

You cannot have spaces in URI, how do you manage to get them? What you 
want is thus to know how to avoid duplicate content between

http://www.abc.com/de/about%20us

and

http://www.abc.com/de/about%20us/

That's the question? Do not hesitate to use line breaks, it ease the 
reading...

The question is, how you manage to generate your two links with and 
without the ending slash? Does TYPO3 generate two types of links or do 
you try to type the URL yourself and found that both URI are working?

If so, then you also have duplicate content between

http://www.abc.com/de/about%20us/

and

http://www.abc.com/index.php?id=<some-id>&L=<id-of-german>

You cannot avoid it!

If you really want to deny access to the URL without the ending /, then 
you might write a 301/302 redirect in your .htaccess.

>    2. how to switch to language when i call base url,  www.abc.com to
>    www.abc.com/de

There's a parameter, something like valueDefault in RealURL 
configuration file that forces the language to be added.

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html


More information about the TYPO3-english mailing list