Forum Moderators: phranque
Well, I want that always the address on address bar in browser looks like "http://www.something.com.ar" and [wwws.something.edu...]
Rewriting on non-SSL server works fine but not on SSL server, browser reports "Cyclic redirect"
Non-ssl server www.something.com:
/etc/httpd/conf/httpd.conf
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www(.something.com.ar)?$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www.¦chicago.)?(something.com.ar¦other.com.ar¦other2.com)$ [NC,OR]
RewriteCond %{HTTP_HOST} ^chicago(.something.com¦.something.com.ar)?$ [NC,OR
]
RewriteCond %{HTTP_HOST} ^200.42.213.2$ [NC,OR]
RewriteCond %{HTTP_HOST} ^something.com(.ar)?$ [NC]
RewriteRule ^(.*)$ http://www.something.com/$1 [R=permanent,L]
SSL-Server /etc/httpd/conf.d/ssl.conf :
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(localhost¦boston¦200.42.213.4) [NC,OR]
RewriteCond %{HTTP_HOST} ^wwws.something.com.ar$ [NC,OR]
RewriteRule ^(.*)$ [wwws.something.edu...] [R=permanent,L]
What's wrong with this setting? Could you help me?
Thanks in advance!
[edited by: jdMorgan at 2:40 pm (utc) on Jan. 23, 2008]
[edit reason] de-linked [/edit]
From what I see in this thread, I'd recommend a 301 redirect, not a 302.
Jim
What is better for SEO
1) RewriteRule ^(.*)$ http://www.example.com/$1 [R=permanent,L]
or
2) RewriteRule ^(.*)$ http://www.example.com/$1 [L]
Suppose that www.example.com.ar and www.example.com has the same IP. (sorry for the stupid question) what is the difference between "rewriting" and "redirecting".
Sergio
[edited by: jdMorgan at 2:31 am (utc) on Jan. 24, 2008]
[edit reason] example.com [/edit]
It's bad enough when some other Webmaster out-ranks your site. But even worse if you outrank yourself!
Your best bet is to use a 301, and promote only one of the domains, so as to avoid splitting their ranking.
Jim
What's the difference between an external and an internal redirect? [webmasterworld.com]
Jim