[英]Can I run both my wordpress website and non-wordpress website on same domain?
I build a client website and business system using html+php+mysql and both runs on same domain. 我使用html + php + mysql构建了一个客户端网站和业务系统,两者都在同一个域上运行。
Recently, I feel like it would be better to separate the website and use wordpress so that the client can update their own contents instead of me doing this everytime they need to change something. 最近,我觉得最好将网站分开并使用wordpress,以便客户端可以更新自己的内容,而不是每次他们需要更改内容时都这样做。
As, my client is in low budget, I was thinking whether it would be possible to run both the wordpress and business solution on same domain. 因为,我的客户预算很低,我在想是否可以在同一个域上同时运行wordpress和业务解决方案。 If I run the business solution under sub-domain will it solve the issue or wordpress's front controller will pickup any request related to that domain?
如果我在子域下运行业务解决方案,它会解决问题,还是wordpress的前端控制器将提取与该域相关的任何请求?
Is it possible at all? 有可能吗? My suggestion would be appreciated.
我的建议将不胜感激。
many thanks, 非常感谢,
Mahbub 马赫布卜
It's absolutely possible, yes. 这是绝对可能的,是的。 And there are many scenarios you can use depending on what you want to do:
根据您的目的,您可以使用许多场景:
Not knowing anything about your code, if it's simple enough another approach would be to create custom page templates in WordPress that invoke your code. 不了解您的代码,如果它很简单,另一种方法是在WordPress中创建调用代码的自定义页面模板。 The nice thing about this is that your pages will always have the same look and feel as the other pages in the blog, ie if you change/update the theme.
关于这一点的好处是,您的页面将始终具有与博客中其他页面相同的外观和感觉,即,如果您更改/更新主题。 This may or may not matter to you.
这对您来说可能或不重要。
Its possible. 这是可能的。 We have implemented it for multiple sites in the following ways
我们通过以下方式为多个站点实现了它
You can then share the sessions between these systems. 然后,您可以在这些系统之间共享会话。 Just process your login/ registration through only one system.
只需通过一个系统处理您的登录/注册。
Sure, you can set the wordpress site in for example: http://blog.example.com and the website in http://www.example.com without any problem. 当然,你可以设置wordpress网站,例如: http : //blog.example.com和http://www.example.com网站没有任何问题。 Just need to setup that in the web server.
只需要在Web服务器中设置它。
I did it by putting the wordpress blog in a separate directory inside the large domain. 我通过将wordpress博客放在大域内的单独目录中来实现。 wordpress do not interfere with other php sites on the same domain.
wordpress不会干扰同一域上的其他php站点。
Yes, it's possible. 是的,这是可能的。 We'd used Drupal for main website, ELGG for social networking, PHPBB3 for forums and Wordpress for blogging on the same domain name.
我们使用Drupal作为主要网站,ELGG作为社交网络,PHPBB3作为论坛,Wordpress作为博客使用相同的域名。 We did it by using different subdomains for each site.
我们通过为每个站点使用不同的子域来完成它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.