Re: How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-09 Thread Grzegorz Pawlik
Isn't it easier to make domain .com.pl point at the same location as domain .pl ? I don't believe messing with .htaccess is what You need ;) On Jun 8, 10:58 am, Anna P wrote: > Thank you for suggestion, but that doesn't seem to work either. Still > when I enter .com.pl it doesn't redirect me to

Re: How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-08 Thread brian
Sorry, i don't know. On Mon, Jun 8, 2009 at 4:58 AM, Anna P wrote: > > Thank you for suggestion, but that doesn't seem to work either. Still > when I enter .com.pl it doesn't redirect me to .pl > > > > --~--~-~--~~~---~--~~ You received this message because you ar

Re: How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-08 Thread Anna P
Thank you for suggestion, but that doesn't seem to work either. Still when I enter .com.pl it doesn't redirect me to .pl --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send em

Re: How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-07 Thread brian
Try this RewriteEngine on RewriteCond %{HTTP_HOST}^www\.domain\.com\.pl rewriterule ^(.*)$ http://www.domain.pl/$1 [R=301,L] RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] On Sun, Jun 7, 2009 at 7:00 AM, Anna P wrote: > > Hello. > I have two dom

Re: How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-07 Thread Anna P
I also tried following: RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?domain.com.pl(.*) [NC] RewriteRule ^(.*)$ http://www.domain.pl/$1 [R=301,L] RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] But it doesn't seem to work. When I enter on .com.p

How to set 301 redirect in htaccess for domain ".com.pl" to redirect to ".pl"

2009-06-07 Thread Anna P
Hello. I have two domains with the same content. Let's say that it's - www.domain.pl and www.domain.com.pl I want to redirect .com.pl domain to .pl How to set 301 redirect in htaccess file? I tried like this: RewriteEngine on RewriteRule ^www.domain.com.pl$ /www.domain.pl [R=301,L] Rew