SEO Friendly Redirect
-
By harnessing the power of Google I’ve discovered ways to resolve the www vs no-www issue out there. However, which way is (more) correct (than the others)?
The simplest is:
Redirect 301 / https://www.yoursite.com/
(but it has variations like PermanentReidrect?)Then I found:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^YourSite\.com [nc]
RewriteRule (.*) https://www.YourSite.com/$1 [R=301,L]What’s the difference between this and the above?
Which one of these is the standard (or which is better)?
Thanks in advance.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘SEO Friendly Redirect’ is closed to new replies.