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.

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.

Read More

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. 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?

Is it possible at all? My suggestion would be appreciated.

many thanks,

Mahbub

Related posts

Leave a Reply

5 comments

  1. It’s absolutely possible, yes. And there are many scenarios you can use depending on what you want to do:

    • Subdomains — install everything in different subdomains, or install one thing at the root and the others in different subdomains. The subdomains normally just map into directories on the same account, so you use the same FTP credentials and so on to transfer files.
    • Directories — like http://www.example.com/blog. Very easy to deploy a blog this way, and just put your other stuff in the root.
    • Intermingling — you can actually put files (.php, .html, etc.) in the same directory as WordPress, just as long as there are no name conflicts. The default redirection rules in .htaccess will ensure that those files will get served as usual without interfering with WordPress.

    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. The nice thing about this is that your pages will always have the same look and feel as the other pages in the blog, i.e. if you change/update the theme. This may or may not matter to you.

  2. Its possible. We have implemented it for multiple sites in the following ways

    • Elgg as Master
    • FluxBB / PhpBB for forum
    • WordPress for blogs

    You can then share the sessions between these systems. Just process your login/ registration through only one system.

  3. 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. We did it by using different subdomains for each site.