I have an issue in changing the site address url

I have recently changed my site to WP and now the site is accessible only at example.com, but the www.example.com has high page authority and linking domains. When I tried to change the site address url from example.com to www.example.com then the site is not accessible. What might be the reason behing this? what can I do to bring back my old url?

Related posts

Leave a Reply

2 comments

  1. Check your DNS servers. A CNAME record may have gone walkabout.

    Here’s a table representation:

    Record Type  |  URL / Address  |  IP Address
    ---------------------------------------------
         A       |   example.com   |   10.0.0.0
       CNAME     | www.example.com |  example.com
    
  2. Possible issues:

    1. Database: Look for table wp_options, there is field siteurl
      try to play with it.
    2. .htaccess:

      Options +FollowSymLinks
      RewriteEngine on
      RewriteCond %{HTTP_HOST} ^stackoverflow.com
      RewriteRule ^(.*)$ http://www.stackoverflow.com/$1 [R=permanent,L]
      

      OR

      Options +FollowSymLinks
      RewriteEngine On
      RewriteCond %{HTTP_HOST} ^stackoverflow.com$ [NC]
      RewriteRule ^(.*)$ http://www.stackoverflow.com/$1 [R=301,L]
      
    3. Clear your DNS