Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run both my wordpress website and non-wordpress website on same domain?

Tags:

php

wordpress

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.

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

like image 605
Mahbub Avatar asked Jan 20 '11 10:01

Mahbub


People also ask

Can I create a website with WordPress and host it somewhere else?

Get your own hosting and domain name Website hosting is just somewhere to store your website and a domain name is just a website address for people to go to. You might have previously used yourblog.wordpress.com, but you can now get yourblog.com. Pretty neat, right! You'll need a hosting provider to store your website.

Can you have multiple websites under one WordPress account?

WordPress Multisite is a popular feature of WordPress, which enables you to create and run multiple websites using the same WordPress installation on your server. In other words, you can manage several different WordPress websites from a single dashboard.

Do I need separate hosting for WordPress?

Generally speaking, you don't need WordPress-specific hosting to launch a successful site with WordPress. In fact, many companies market their regular shared plans towards WordPress users. Still, these packages often come with useful features that will help your website perform better in the long run.

Can you build a website with WordPress without hosting and domain?

The simple answer is, yes, you can build a WordPress site without hosting. WordPress has two different versions, WordPress.org and a free version called WordPress.com where you can build a website without having to host it yourself.


2 Answers

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.

like image 196
Eric Giguere Avatar answered Sep 30 '22 04:09

Eric Giguere


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.

like image 24
Team Webgalli Avatar answered Sep 30 '22 03:09

Team Webgalli