Support » Everything else WordPress » Requiring the WWW

  • bazy



    I want to force my wordpress website to instead of

    I have added this in to my .htaccess file:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /
    # require non-empty HOST header
    RewriteCond %{HTTP_HOST} !^$
    # require case-insensitive HOST to be
    RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC]
    # 301 redirect everything to correct
    RewriteRule ^(.*)$$1 [R=301,L]

    But i get Redirect Loop.

    Please help me to fix this.


Viewing 2 replies - 1 through 2 (of 2 total)
  • bazy


    problem resolved.



    Go To Dashboard> Settings> General Settings > Blog address (URL). Just change it instead of the steps you have done. You’ll get what exactly you wanted.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Requiring the WWW’ is closed to new replies.