[TYPO3-english] .htaccess redirect

Rupali Gupta rupali.ffm at googlemail.com
Wed Oct 29 10:51:05 CET 2008


now i know how to redirect domain. Iid it with:
now i know how to redirect domain.I did it with:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !newdomain.com$ [NC]
RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]

now i need two more results:

   1. i want that on calling www.abc.com, user lands on www.abc.com/de/home/
   2. how to avoid duplicate contents of www.abc.com/de/home and
   www.abc.com/de/home/


Here is brief description of what is happening currently, so that i can tell
better about my problems.

 I call my site with abc.com or www.abc.com, i land onto
www.abc.com/......ok.. :)

default language of site is german (de)
so because of'valueDefault' => 'de', in realurl_conf.php : as soon as i
click on any menu item, I land on www.abc.com/de/page/  -----------good :)

the problem is here: contents of

    * www.abc.com
    * www.abc.com/de
    * www.abc.com/de/home
    * www.abc.com/de/home/

are same, Which i want to avoid.

i have  'fileName' => array(
            'defaultToHTMLsuffixOnPrev'=> "/" ,
in realurl_conf.php as we need that the sites end up with / instead of .html

Pls suggest.


2008/10/16 Andreas Burg <typo3 at andreasburg.de>

> Hi all,
>
> > RewriteEngine On
> > RewriteBase /
> >
> > # Correct Domain
> > RewriteCond %{HTTP_HOST} !^typo3blogger\.de$
> > RewriteRule ^(.*)$ http://typo3blogger.de/$1 [L,R=301]
>
> extended different version:
>
> RewriteEngine On
> RewriteCond %{HTTP_HOST}  !^127.0.0.1
> RewriteCond %{HTTP_HOST}  !^localhost [NC]
> RewriteCond %{HTTP_HOST}  !^typo3blogger\.de [NC]
> RewriteCond %{HTTP_HOST}  !^$
> RewriteRule ^(.*)         http://typo3blogger.de/$1 [L,R=301]
>
> Andreas
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



-- 
Regards,
Rupali


More information about the TYPO3-english mailing list