1 replies
  • SEO
  • |
Where in the .htaccess file (top, bottom, or center) does the piece of code go to 301 redirect a URL? For example, a non-www to a www URL?
#file #htaccess
  • Profile picture of the author RobinInTexas
    Try this before anything else:

    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} www.yoursite.com
    RewriteRule ^(.*) http://yoursite.com/$1 [L,R=301]
    that will transform www to no www
    Signature

    Robin



    ...Even if you're on the right track, you'll get run over if you just set there.
    {{ DiscussionBoard.errors[3381511].message }}

Trending Topics