我已经修改了位于的网站https://example.com
并尝试在以下位置运行该网站的新版本https://example.com/newsite
But i want to use the same database with all the links as https://example.com
现在根据这个https://codex.wordpress.org/Running_a_Development_Copy_of_WordPress
我在wp includes/options中进行了黑客攻击。php如下
if ($option == "siteurl" || $option == "home") {
// some sample logic to determine if we\'re on the dev site
if (strcasecmp($_SERVER[\'REQUEST_URI\'], \'/newsite\') == 0
|| strcasecmp(substr($_SERVER[\'REQUEST_URI\'], 0, 5), \'/newsite/\') == 0) {
return "http://example.com/newsite";
}
}
除了图像以外,其他一切都很好。
图像的路径为静止
http://example.com/wp-content/uploads/2015/11/c11.png
而不是
http://example.com/newsite/wp-content/uploads/2015/11/c11.png
我被卡住了。
Plz帮助!!