Add www to domain in wordpress blog

1 replies
  • WEB DESIGN
  • |
I want add www to my wordpress blog URL.
I use hostgator Hosting and Go Daddy domain.

I have added following code in .htaccess file. Then loop and error got.

Code:
RewriteCond %{HTTP_HOST} ^([a-z.]+)?androidwallpapershq\DOTcom$ [NC] 
RewriteCond %{HTTP_HOST} !^www\. [NC] 
RewriteRule .? h t t p : / / w w w.%1androidwallpapershqDOTcom%{REQUEST_URI} [R=301,L]
#add #blog #domain #wordpress #www
  • Profile picture of the author Wenape
    Restore the .htaccess to it's original. The fix you need is pretty easy in Wordpress.

    Wordpress defaults your domain name as: http://androidwallpapershq.com. To change this, you need to access: Settings -> General and change WordPress Address (URL) and Site Address (URL) to http://www.androidwallpapershq.com. You will then be asked to re-enter to your admin account and that's it!

    Good Luck!
    {{ DiscussionBoard.errors[7195225].message }}

Trending Topics