I have tried copying my wordpress site to my PC for editing offline using WAMP. I followed the following tutorial word for word.
I have placed my files in C:\wamp\www\wordpress
I saw somewhere about adding the following to the wp-config.php but it still points to my website.
I am 100% sure that wp_options table in my database only references
http://localhost/wordpress so where is it getting my live site address from?
UPDATE 1: I just noticed the following in the bottom of my wp-config.php
/** * For developers: WordPress debugging mode. * * Change this to true to enable the display of notices during development. * It is strongly recommended that plugin and theme developers use WP_DEBUG * in their development environments. */ define('WP_DEBUG', false); define('WP_ALLOW_MULTISITE', true); define( 'MULTISITE', true ); define( 'SUBDOMAIN_INSTALL', false ); $base = '/'; define( 'DOMAIN_CURRENT_SITE', 'www.mywebsite.co.uk' ); define( 'PATH_CURRENT_SITE', '/' ); define( 'SITE_ID_CURRENT_SITE', 1 ); define( 'BLOG_ID_CURRENT_SITE', 1 ); /* That's all, stop editing! Happy blogging. */ /** Absolute path to the WordPress directory. */ if ( !defined('ABSPATH') ) define('ABSPATH', dirname(__FILE__) . '/'); /** Sets up WordPress vars and included files. */ require_once(ABSPATH . 'wp-settings.php');
where it says
define( 'DOMAIN_CURRENT_SITE', 'www.mywebsite.co.uk' );
(obviously changed my address for posting) if I change it too
define( 'DOMAIN_CURRENT_SITE', 'localhost/wordpress' );
I get a redirect loop. Is this related or am I changing something I don't need to and the issue is else where?
UPDATE 2: does it having anything to do with the fact that on my website the wordpress files are in the
www folder and on the local they are in the