Hey Sarzze,
Log in via FTP and edit the file “wp-config.php”.
Directly under <?php copy and paste the following code:
define(‘WP_HOME’,’http://patiko.lt’);
define(‘WP_SITEURL’,’http://patiko.lt’);
Here is the entire tutorial: http://codex.wordpress.org/Changing_The_Site_URL
If this doesn’t help reply again in this thread. I would recommend updating your website DNS to include a CNAME or A record to resolve the www as well. Hope this helps!
Hey WPBlaze.com,
I made the change in “wp-config.php” and I still cannot access my home page but at least I was able to log in into admin panel and make changes to
WordPress Address (URL) – http://patiko.lt
Site Address (URL) – http://patiko.lt
And clicked save!
I also included a CNAME record:
http://www.patiko.lt CNAME patiko.lt
Doing this can cause a loop
At hosting level you have a site defined at www. but if you tell WordPress to go to http:// it will loop back to www.
When the hosting compamy sees such a loop they usually stop it.
The problem is that the parameters you save are stored in the database so edit those entries with phpmyadmin
In future a better way to do this is to backup the site with something like Backupbuddy
Delete the site and delete or flush the database
Make the change at the hosting company to host http://patiko.lt rather than http://www.patiko.lt
Then upload and restore the backupbuddy backup this time as http://patiko.lt
Right now you have killed http://www.patiko.lt you need to get it to canonical redirect to http://patiko.lt
This can sometimes be done at the hosting company which means less code
Cool, after editing entries with phpmyadmin worked, I just deleted http://www. and left patiko.lt.
But now I wonder how to make that http://www.patiko.lt/ would redirect to http://patiko.lt? Via plugin maybe?
Redirect www to non-www
Try the following in the .htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.patiko.lt [NC]
RewriteRule ^(.*)$ http://patiko.lt/$1 [L,R=301]
Well I tried editing .htaccess file but it does not work, I get Internal server error.