return $result[$k]; if (3 == DEBUG) return TRUE; if (1 == $gid) return TRUE; // 管理员有所有权限 if (!isset($grouplist[$gid])) return TRUE; $group = $grouplist[$gid]; $result[$k] = empty($group[$access]) ? FALSE : TRUE; return $result[$k]; } // 从缓存中读取 forum_list 数据 function group_list_cache() { global $conf; if ('mysql' == $conf['cache']['type']) { $grouplist = group_get(); } else { $grouplist = cache_get('grouplist'); if (NULL === $grouplist || FALSE === $grouplist) { $grouplist = group_find(); cache_set('grouplist', $grouplist); } } return $grouplist; } // 更新 forumlist 缓存 function group_list_cache_delete() { global $conf; $r = 'mysql' == $conf['cache']['type'] ? group_delete_cache() : cache_delete('grouplist'); return $r; } //--------------------------kv + cache-------------------------- $g_grouplist = FALSE; function group_get() { global $g_grouplist; FALSE === $g_grouplist AND $g_grouplist = website_get('grouplist'); if (empty($g_grouplist)) { $g_grouplist = group_find(); $g_grouplist AND group_set($g_grouplist); } return $g_grouplist; } function group_set($val) { global $g_grouplist; $g_grouplist = $val; return website_set('grouplist', $g_grouplist); } function group_delete_cache() { website_set('grouplist', ''); return TRUE; } ?>redirect - Redirecting to old domain, tried everything, nothing works|Concepts Of Algorithm

redirect - Redirecting to old domain, tried everything, nothing works

admin2025-03-13  2

I've moved a Wordpress site from one domain to another. I have changed the siteurl and home options in the wp-options table, added this tags into wp-login.php file:

update_option('siteurl', '' ); update_option('home', '' );

and I've tried to rewrite the URL using these tags in the wp-config.php file:

define('WP_HOME','');
define('WP_SITEURL','');

When I enter to the address bar, I'm redirected to my old domain. But /wp-admin is normally accessible. In the settings I can even see the WordPress Address (URL) and Site Address (URL) with the correct values.

Is there any way to fix this? I have tried (as described above) everything I have found on the web and I am beginning to feel very hopeless.

(Sorry for my English mistakes.)

I've moved a Wordpress site from one domain to another. I have changed the siteurl and home options in the wp-options table, added this tags into wp-login.php file:

update_option('siteurl', 'http://my.new.domain' ); update_option('home', 'http://my.new.domain' );

and I've tried to rewrite the URL using these tags in the wp-config.php file:

define('WP_HOME','http://my.new.domain');
define('WP_SITEURL','http://my.new.domain');

When I enter http://my.new.domain to the address bar, I'm redirected to my old domain. But http://my.new.domain/wp-admin is normally accessible. In the settings I can even see the WordPress Address (URL) and Site Address (URL) with the correct values.

Is there any way to fix this? I have tried (as described above) everything I have found on the web and I am beginning to feel very hopeless.

(Sorry for my English mistakes.)

Share Improve this question asked Mar 28, 2016 at 12:39 jendajenda 1611 silver badge6 bronze badges 1
  • 6 It may be the old browser cache! Try with private browsing or by adding query string http://my.new.domain/?random_string – Sumit Commented Mar 28, 2016 at 12:49
Add a comment  | 

1 Answer 1

Reset to default 5

As Sumit pointed out, the problem was in the old browser cache. The solution was to clear browser cache (or just add a query string after the address: http://my.new.domain/?random_string).

Thank you.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1741854824a184027.html

最新回复(0)