[TYPO3-english] .htaccess redirect

Rupali Gupta rupali.ffm at googlemail.com
Wed Oct 29 17:35:55 CET 2008


1) The question is, how you manage to generate your two links with and
without the ending slash?

I googled and came to know that Dimitry is already working on this issue. Is
it solved ?

http://typo3bloke.net/post-details/duplicate_content_with_realurl/

2008/10/29 Rupali Gupta <rupali.ffm at googlemail.com>

> Hi Xavier,
>
> 2)  (There's a parameter, something like valueDefault in RealURL
> configuration file that forces the language to be added.)
>
> i have done it:
> 'valueDefault' => 'de'
> works also super.
>
> only thing is that it works after I click on any menu item eg. about us,
> url changes to www.abc.com/de/about us/
>
> but is there method that i call www.abc.com and it redirects to
> www.abc.com/de/  -- browser language detection?
>
> 1) The question is, how you manage to generate your two links with and
> without the ending slash?
>
> you are right,here i am making realurl to generate slash after:
> 'defaultToHTMLsuffixOnPrev'=> "/"
> what should i do if i dont want any character at the end? i tried
> 'defaultToHTMLsuffixOnPrev'=> ""
> but this also generates "/" at the end. I wish the final result to be
> www.abc.com/de/about-us
> 2008/10/29 Xavier Perseguers <typo3 at perseguers.ch>
>
> 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
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>
>
>
>
> --
> Regards,
> Rupali
>



-- 
Regards,
Rupali


More information about the TYPO3-english mailing list