我看到一个wordpress主题。假设在domain1.com上提供主题的演示,我喜欢它,我收集了演示文件和主题文件。
然后我将wordpress manully安装到服务器中,之后我导入了演示内容和主题。一切看起来都很好。
假设domain2.com是我安装wordpress的新网址。导入的演示内容具有about
菜单按钮。当我点击它时,它转到domain1的关于部分。所以我去了Appearance>菜单和找到关于菜单项及其包含以下#!/about_section
所以我的问题是系统为什么要去domain1.com/#!/about_section而不是domain2.com/#!/about_section?我应该编辑什么设置来解决这个问题?
答案 0 :(得分:0)
我认为您必须更改网站的网址。当我将WordPress网站移动到另一个地址时,我只是导出数据库,在sql文件中我用新的URL替换所有旧网址。
您应该在此处找到更多信息:https://codex.wordpress.org/Changing_The_Site_URL
答案 1 :(得分:0)
在domain2的数据库中,在wp_options中,将siteurl更改为新域。否则你可以根据codex在wpconfig文件中手动替换:
Traceback (most recent call last):
File "C:\Users\Afro\AppData\Local\Programs\Python\Python35-32\Scripts\pyinstaller-script.py", line 9, in <module>
load_entry_point('PyInstaller==3.2', 'console_scripts', 'pyinstaller')()
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\__main__.py", line 90, in run
run_build(pyi_config, spec_file, **vars(args))
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\__main__.py", line 46, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\building\build_main.py", line 788, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\building\build_main.py", line 734, in build
exec(text, spec_namespace)
File "<string>", line 26, in <module>
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\building\api.py", line 407, in __init__
self.__postinit__()
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\building\datastruct.py", line 178, in __postinit__
self.assemble()
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\building\api.py", line 496, in assemble
versioninfo.SetVersion(tmpnm, self.versrsrc)
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\utils\win32\versioninfo.py", line 557, in SetVersion
win32api.UpdateResource(hdst, pefile.RESOURCE_TYPE['RT_VERSION'], 1, vs.toRaw())
File "c:\users\afro\appdata\local\programs\python\python35-32\lib\site-packages\PyInstaller\utils\win32\versioninfo.py", line 160, in toRaw
nm = pywintypes.Unicode(u'VS_VERSION_INFO')
TypeError: argument 1 (impossible<bad format char>)