[TYPO3-english] .htaccess redirect

Rupali Gupta rupali.ffm at googlemail.com
Wed Oct 29 12:03:08 CET 2008


making a page:home inside root and then redirecting it to root , didnt make
any sense, so i deleted the page home and all its contents i have put in
root. so atleast this problem is solved.

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.
   2. how to switch to language when i call base url,  www.abc.com to
   www.abc.com/de




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

> regarding duplicate contents of
> * www.abc.com/de/ <http://www.abc.com/de/home>
>    * www.abc.com/de/home/
>
> I made page:home a shortcut to root. so if user clicks on menu item home he
> lands on www.abc.com/de/  ------ looks like solved.
>
> but:  if type http://www.wohlrath-partner.de/de/home/ - there is no
> redirect
> to www.abc.com/de/
> so again dupliacte contents?
> :(
>
>
>
> 2008/10/29 Rupali Gupta <rupali.ffm at googlemail.com>
>
> > 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
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
>
>
>
> --
> Regards,
> Rupali
> _______________________________________________
> 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