New answers tagged

3

No, top-level domains (example.com) can be redirected independently with regards to their subdomains (www.example.com, notredirected.example.com). The typical setup for what you're describing is to redirect example.com and www.example.com to Domain B, but keep notredirected.example.com serving.


2

There is indeed another setting that controls redirects. To make Apache look at .htaccess, it is necessary to change the AllowOverrides line in the apache .conf file for the site: <Directory /var/www/oldsite/> Options FollowSymLinks AllowOverride **None** Require all granted </Directory> You can replace None by All to enable ...


4

You just need to implement your more specific redirect first, before your "generic" redirect everything else directive. For example: RewriteCond %{HTTP_HOST} example\.net$ [NC] RewriteRule ^en$ https://example.com/abc [L,R=301] RewriteCond %{HTTP_HOST} example\.net$ [NC] RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301] Aside... RewriteCond %{...


1

It can be fine for SEO to redirect the base URL of the domain to a language based on the Accept-Language header. The only SEO concerns are: Test your rules for case in which the language header doesn't list one of the languages you support. Test your rules for no Accept-Language header sent at all. (Most bots won't send one). You need a fall-back page ...


0

Sites get rearranged all of the time, some for the better, some for the worse. Use a 301 Permanent Redirect. This way Google will understand that you want it to update it's index to use the new URLs, not the old ones. Assuming your restructuring directs users to better content, you should see better performance in the long run. In the short run, you ...


Top 50 recent answers are included