admin管理员组文章数量:1122832
Wondering if there's a way to edit our search.php or .htaccess or function.php (or anything else...) so that our search function on our main site (www.oursite) includes the subdomain of blog.ourwebsite?
Any thoughts or suggestions are appreciated it..
Wondering if there's a way to edit our search.php or .htaccess or function.php (or anything else...) so that our search function on our main site (www.oursite.com) includes the subdomain of blog.ourwebsite.com?
Any thoughts or suggestions are appreciated it..
Share Improve this question asked Feb 1, 2013 at 21:34 E PE P 292 bronze badges 6 | Show 1 more comment1 Answer
Reset to default 0If you transform your main website's Wordpress into a multi-site environment, you can move blog.yourdomain.com to be a network site.
Once you do this, you could use the Multisite Global Search plugin to add a widget that searches all network sites.
It would be easy to move your standalone blog.yourwebsite.com to a network site:
- export the content from blog.yourdomain.com,
- create a subdomain Wordpress network on your main website,
- edit your blog.subdomain.com settings (Settings > General) to change the site and Wordpress URL to blog2.subdomain.com,
- rename your subdomain blog to blog2 in cPanel,
- create a network site called blog.yourdomain.com
- import the content you exported earlier.
Done.
PS - You'd need to copy any themes and plugins you have on blog2.yourdomain.com into the main Wordpress installation.
本文标签: Make Search Function include subdomain (blogourwebsitecom)
版权声明:本文标题:Make Search Function include subdomain (blog.ourwebsite.com) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736284316a1927223.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
search.php
look like? How good are you at SQL and PHP? – s_ha_dum Commented Feb 4, 2013 at 19:39