<p>I've never had a problem running more than one application, but have always done so from within a sub-directory. e.g. domain.com/marketing/ </p>

<p>However the most obvious impact with the above is that you're going to slightly penalise every URL because of the additional segment.</p>

<p>(A sub domain like <strong>marketing.domain.com</strong> would also work)</p>

<p><strong>Regarding dynamic e-commerce content:</strong>
I would suggest an XML feed with some kind of categorisation or tags, which you could make use of within Craft. 
FeedMe might be useful for this: <a href="https://github.com/engram-design/FeedMe" rel="nofollow">https://github.com/engram-design/FeedMe</a></p>

<p>Mirroring navigation might require manual updates. Be interesting to see what others think around that one.</p>

CC BY-SA 3.0
2016-02-12T16:12:49.063Z
2016-02-12T16:12:49.063Z
Matt P
<p>You're asking a loaded question. I don't think there's a wrong answer here but if it were me, you have a couple options.</p>
<h1>Addressing the Elephant in the Room</h1>
<p>How good of a salesman are you? ;) You mention the e-commerce CMS isn't getting the job done but replacing it is off the table. I've gone down this road before.  Since you've got your team interested in Craft, why not consider <a href="https://craftcommerce.com" rel="nofollow noreferrer">Craft Commerce</a> too? I know what you're thinking. It's a tough sell. But then again, so is integrating 2 CMS and making sure things don't break between them. What happens if that 3rd party CMS vendor doesn't &quot;approve&quot; of what you're doing and cuts support?  Not saying it'll happen but like you mentioned... politics has a way of messing with people.</p>
<p>I don't know how much business logic that the current e-commerce solution has that you'd have to replicate or how many products and variations you're dealing with but if anything is up for the challenge, it's Craft and Craft Commerce. Just demoing the seamless integration between the two might be enough for the sales/marketing team. Time is money for them.</p>
<p>If you can't go with Craft Commerce, it really depends on what the other software does and how you integrate the two.</p>
<h1>Integrating the Two</h1>
<p>I'm assuming both CMS will live on the same physical server? Indeed, Craft could  play alongside the other CMS. That's the easiest option. If it were me, I'd probably setup all new marketing pages within Craft and then link to the actual ordering pages in 3rd party CMS.</p>
<p>By default, most CMS including Craft are going to suck up any request that isn't a static file, query the database, and then return the &quot;virtual&quot; page from the database. The actual page doesn't really exist on the server, so Craft looks for &quot;would-be&quot; 404s. That's basically what the rewrite rules in a .htaccess file does—it tells Apache to send any 404 back to the application (usually index.php).</p>
<p>Why is this important? If you have any flexibility with the 3rd party CMS, I'd &quot;quarantine&quot; it to a folder on the server, like <code>/store/</code> so any request within that folder (like <code>/store/black-leather-jacket/</code>) would go to the commerce CMS (assuming the CMS is sane and doesn't do something stupid like have absolute URLs).</p>
<p>Craft would handle everything else. You could quarantine &quot;Craft&quot; to a folder, but like you mentioned, any page you create would have a URL like <code>/marketing/black-leather-jacket/demo/</code> or whatever you decide. That's sub-optimal in my opinion. As far as SEO and flexibility go, you probably want people to hit your marketing/landing pages first. People won't buy if they don't have info.</p>
<p>(And it's probably easier to do a 301 redirect to the already existing pages... you could setup Craft so that if it can't find a file, have it take a look if the page exists in the other CMS and redirect if it does.)</p>
<h1>Tapping into the Data</h1>
<p>Assuming the e-commerce database design/schema is easy to tap into, I'd write a Craft plugin to grab product data directly from the database, based on whatever parameters you need to feed a Twig template. That's beyond the scope of this question but the dev is relatively straightforward.</p>
<p>Craft is built on <a href="http://www.yiiframework.com" rel="nofollow noreferrer">Yii</a>, an excellent PHP framework so whatever Yii can do Craft can do as well. Craft also ships with Guzzle which would make it easy to &quot;scrape&quot; the actual page or as <a href="https://craftcms.stackexchange.com/a/13681/1016">Matt P mentions</a> building or tapping into some sort of bridge between the 2 systems.</p>
<p>Speaking of scraping, if the 3rd party e-commmerce solution is a hosted solution, then you might have to set that one up on another domain and let Craft handle the marketing pages. In this case, you might consider something like <code>store.domain.com</code>.</p>
<p>Again, all comes down to what the other e-commerce solution does. Craft is relatively flexible any way you slice it.</p>

CC BY-SA 3.0
2016-02-15T12:17:40.103Z
Thanks so much for taking the time to answer this : ) That's all very helpful and gives me a few options to pitch to the team. Sadly, replacing the e-commerce CMS still isn't an option. But if this integration of Craft goes well, then there's a more of a chance it could happen in future - though their business logic is pretty crazy!
Matt Ellis
CC BY-SA 3.0
2016-02-15T16:01:18.977Z
Sure thing. I can imagine their biz logic, which is probably why they went with a custom solution! some clients need to go through that "exercise in futility" before they really realize the benefits you're proposing.
RitterKnight
CC BY-SA 3.0
2016-02-13T23:30:10.000Z
2016-02-13T23:48:33.873Z
2020-06-17T08:56:27.903Z
RitterKnight
<p>I've started working with a marketing team for a well established online ecommerce store. </p>

<p>Their site is a custom ecommerce CMS build (handled by another third party), which works well technically, but the marketing team have regularly expressed how difficult it is for them to create visually interesting and engaging pages within the site, as it's geared so much towards ecommerce.</p>

<p>Currently the only options the marketing team have when adding new pages from the ecommerce CMS is a textarea (single column, bold, italic, links) and a single image.</p>

<p>Updating the ecommerce CMS to give the marketing team greater flexibility is currently not an option (due to history and internal politics). This then led to the conversation of running 2 CMS's on the same domain - 1 for handling the ecommerce and 1 for the blog and product specific promotional landing pages. I showed them Craft, and they loved it!</p>

<h2>The Question(s)</h2>

<p>First off, is running 2 CMS's on the same domain possible / advisable? (I remember hearing Joel Bradbury mention running EE and WP on the same domain at EEUK)</p>

<p>Are there any obvious pitfalls or gotchas?</p>

<p>I'm assuming it would be simple enough to have Craft handle any blogs if set up on a blog URL (eg: domain.com/blogs/blog-post-name).</p>

<p>But what about specific landing pages (eg: domain.com/discount or domain.com/freestuff)? In theory could I create a route from the ecommerce CMS to point to the Craft generated page? Or should all marketing pages live in the same directory (eg: domain.com/marketing/discount or domain.com/marketing/freestuff)? </p>

<p>Ideally I'd also like to be able to dynamically insert product data (prices, images, descriptions, etc) into the blog and landing pages created in Craft from the ecommerce site. I'm assuming hooking a Craft plugin up to the ecommerce API (if there is one) would be the best option to pull in the data? (Or would scraping be an option?) We would also need to mirror the ecommerce navigation on any Craft generated pages. </p>

<p>The end goal is to give the marking team the freedom and flexibility to add interesting and engaging promotion pages, and have them look native and integrated into the main site.</p>

<p>Apologies, I know there's a lot of questions here. And some non-Craft specific, but I'm hoping this is a good place to start my investigation.</p>

<p>Many thanks!</p>

<server>
Running Craft alongside another CMS on the same domain
# Running Craft alongside another CMS on the same domain

(Asked by: username_0 on 2016-02-12)

I've started working with a marketing team for a well established online ecommerce store.

Their site is a custom ecommerce CMS build (handled by another third party), which works well technically, but the marketing team have regularly expressed how difficult it is for them to create visually interesting and engaging pages within the site, as it's geared so much towards ecommerce.

Currently the only options the marketing team have when adding new pages from the ecommerce CMS is a textarea (single column, bold, italic, links) and a single image.

Updating the ecommerce CMS to give the marketing team greater flexibility is currently not an option (due to history and internal politics). This then led to the conversation of running 2 CMS's on the same domain - 1 for handling the ecommerce and 1 for the blog and product specific promotional landing pages. I showed them Craft, and they loved it!

## The Question(s)

First off, is running 2 CMS's on the same domain possible / advisable? (I remember hearing Joel Bradbury mention running EE and WP on the same domain at EEUK)

Are there any obvious pitfalls or gotchas?

I'm assuming it would be simple enough to have Craft handle any blogs if set up on a blog URL (eg: domain.com/blogs/blog-post-name).

But what about specific landing pages (eg: domain.com/discount or domain.com/freestuff)? In theory could I create a route from the ecommerce CMS to point to the Craft generated page? Or should all marketing pages live in the same directory (eg: domain.com/marketing/discount or domain.com/marketing/freestuff)?

Ideally I'd also like to be able to dynamically insert product data (prices, images, descriptions, etc) into the blog and landing pages created in Craft from the ecommerce site. I'm assuming hooking a Craft plugin up to the ecommerce API (if there is one) would be the best option to pull in the data? (Or would scraping be an option?) We would also need to mirror the ecommerce navigation on any Craft generated pages.

The end goal is to give the marking team the freedom and flexibility to add interesting and engaging promotion pages, and have them look native and integrated into the main site.

Apologies, I know there's a lot of questions here. And some non-Craft specific, but I'm hoping this is a good place to start my investigation.

Many thanks!

**Tags:** server


---

## 2 answers

### Answer by username_2 on 2016-02-13. Score: 5 | Accepted answer

You're asking a loaded question. I don't think there's a wrong answer here but if it were me, you have a couple options.

# Addressing the Elephant in the Room

How good of a salesman are you? ;) You mention the e-commerce CMS isn't getting the job done but replacing it is off the table. I've gone down this road before. Since you've got your team interested in Craft, why not consider [Craft Commerce](https://craftcommerce.com) too? I know what you're thinking. It's a tough sell. But then again, so is integrating 2 CMS and making sure things don't break between them. What happens if that 3rd party CMS vendor doesn't "approve" of what you're doing and cuts support? Not saying it'll happen but like you mentioned... politics has a way of messing with people.

I don't know how much business logic that the current e-commerce solution has that you'd have to replicate or how many products and variations you're dealing with but if anything is up for the challenge, it's Craft and Craft Commerce. Just demoing the seamless integration between the two might be enough for the sales/marketing team. Time is money for them.

If you can't go with Craft Commerce, it really depends on what the other software does and how you integrate the two.

# Integrating the Two

I'm assuming both CMS will live on the same physical server? Indeed, Craft could play alongside the other CMS. That's the easiest option. If it were me, I'd probably setup all new marketing pages within Craft and then link to the actual ordering pages in 3rd party CMS.

By default, most CMS including Craft are going to suck up any request that isn't a static file, query the database, and then return the "virtual" page from the database. The actual page doesn't really exist on the server, so Craft looks for "would-be" 404s. That's basically what the rewrite rules in a .htaccess file does—it tells Apache to send any 404 back to the application (usually index.php).

Why is this important? If you have any flexibility with the 3rd party CMS, I'd "quarantine" it to a folder on the server, like `/store/` so any request within that folder (like `/store/black-leather-jacket/`) would go to the commerce CMS (assuming the CMS is sane and doesn't do something stupid like have absolute URLs).

Craft would handle everything else. You could quarantine "Craft" to a folder, but like you mentioned, any page you create would have a URL like `/marketing/black-leather-jacket/demo/` or whatever you decide. That's sub-optimal in my opinion. As far as SEO and flexibility go, you probably want people to hit your marketing/landing pages first. People won't buy if they don't have info.

(And it's probably easier to do a 301 redirect to the already existing pages... you could setup Craft so that if it can't find a file, have it take a look if the page exists in the other CMS and redirect if it does.)

# Tapping into the Data

Assuming the e-commerce database design/schema is easy to tap into, I'd write a Craft plugin to grab product data directly from the database, based on whatever parameters you need to feed a Twig template. That's beyond the scope of this question but the dev is relatively straightforward.

Craft is built on [Yii](http://www.yiiframework.com), an excellent PHP framework so whatever Yii can do Craft can do as well. Craft also ships with Guzzle which would make it easy to "scrape" the actual page or as [username_1 mentions](https://craftcms.stackexchange.com/a/13681/1016) building or tapping into some sort of bridge between the 2 systems.

Speaking of scraping, if the 3rd party e-commmerce solution is a hosted solution, then you might have to set that one up on another domain and let Craft handle the marketing pages. In this case, you might consider something like `store.domain.com`.

Again, all comes down to what the other e-commerce solution does. Craft is relatively flexible any way you slice it.

> **Comments:**
> **username_0**: Thanks so much for taking the time to answer this : ) That's all very helpful and gives me a few options to pitch to the team. Sadly, replacing the e-commerce CMS still isn't an option. But if this integration of Craft goes well, then there's a more of a chance it could happen in future - though their business logic is pretty crazy!  
> **username_2**: Sure thing. I can imagine their biz logic, which is probably why they went with a custom solution! some clients need to go through that "exercise in futility" before they really realize the benefits you're proposing.  

---

### Answer by username_1 on 2016-02-12. Score: 4

I've never had a problem running more than one application, but have always done so from within a sub-directory. e.g. domain.com/marketing/

However the most obvious impact with the above is that you're going to slightly penalise every URL because of the additional segment.

(A sub domain like **marketing.domain.com** would also work)

**Regarding dynamic e-commerce content:**
I would suggest an XML feed with some kind of categorisation or tags, which you could make use of within Craft.
FeedMe might be useful for this: <https://github.com/engram-design/FeedMe>

Mirroring navigation might require manual updates. Be interesting to see what others think around that one.


---

