Tag Info

Hot answers tagged

3

While it isn't impossible to host multiple secure sites on a single IP address, thanks to SNI and SAN, the redirect you're trying to do is impossible without one of the aforementioned solutions. In order to receive a redirect from https://www.olddomain.com, the browser must have already requested that URL using SSL/TLS, and is expecting an encrypted response ...


2

Search engines will follow multiple redirects as situations like yours are not uncommon. So having two redirects won't be an issue. (This also happens when users use URL shortners, or worse, chain them together which can happen when multiple parties want to track users). But there is an upper limit to how many redirects a search engines will follow. I know ...


2

%{HTTP_HOST} will refer to whatever host the site was accessed through. ie. example.com or www.example.com. To always redirect to www.example.com then simply put this in the substitution: RewriteCond %{HTTPS} off RewriteRule .* https://www.example.com%{REQUEST_URI} [R=301,L] But unless you had a similar rule before then both example.com and ...


1

Turn off the cPanel redirect. Not sure what it is doing or how. But clearly it is not working right. Create an .htaccess file in your sub-domain root directory with: RewriteEngine on RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] ...in it. Obviously change example.com to your domain name. That should do what you want. If you do not know where ...


1

We have gotten a few questions like this one. While I found one good answer for you, I thought I would take this opportunity answer the question better. There are actually two things to consider and not just one. When you want to retain the links of an old site you have essentially two tasks: one, to redirect from one site to the other properly; two, ...


1

Assuming you're running Apache, this can be achieved with the mod_geoip and mod_rewrite modules. Once you have those installed properly and your URL structures will be the same on the Chinese and non-Chinese sites, you can achieve your desired result with code that will look something like RewriteEngine on RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|HK)$ ...


1

Whatever redirection tool you are using is probably bad. webpagetest.org can show you how well your redirects work. Just put in the first page (not the redirected page) and the first entry in the list of URL's the simulated web browser tried accessing will be shown in yellow to indicate a redirect, then the line following it will be the new URL. Google can ...



Only top voted, non community-wiki answers of a minimum length are eligible