We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Hosting other web apps in subdirectories

How Do I?

tomtom80's avatar
tomtom80
3 posts
6 years ago
tomtom80's avatar tomtom80

Being fairly new to EE (v5) and just starting to wrap my head around the channels and templates doctrine – which do seem great, by the way – I am wondering whether or how I could accomplish the following. Thanks in advance for your patience with a newbie.

Let’s say my whole site (an extranet webapp) will be managed through EE installed in the root directory of my webserver. In certain subdirectories I would like to host other webapps (outside of EE), such as a dokuwiki (https://www.dokuwiki.org/dokuwiki) for instance. Is this something to deal with in .htaccess rewrite rules or can I do it inside of EE?

       
Robin Sowell's avatar
Robin Sowell
13,158 posts
6 years ago
Robin Sowell's avatar Robin Sowell

Welcome to EE!

If I understand correctly, you don’t really need to do anything. Just create your folder dokuwiki and put what you need in it. https://www.dokuwiki.org/dokuwiki/index.html, etc. should come up just fine.

Just keep in mind, in EE, everything frontend is running through index.php. If you visit a url that uses the root index.php, it’s going to serve up EE. Otherwise, it won’t.

Where things get a little interesting is the htaccess. If you remove index.php from your urls via the default htaccess (I always do) then you’re basically saying ‘if some url doesn’t exist, slap an index.php on it so EE will handle it’. If it does exist, it just trucks along like normal and EE is out of the picture.

Does that help?

       
tomtom80's avatar
tomtom80
3 posts
6 years ago
tomtom80's avatar tomtom80

Awesome, thanks Robin, that helps. Will give it a try.

       
liberty79's avatar
liberty79
135 posts
6 years ago
liberty79's avatar liberty79

I believe you’d have to manage that in DNS. let’s say you have website.com

inside that you have a folder called forums which you want to live at forums.website.com

your CNAME record would say something like of website.com

if you had a Node or Rails app running on Heroku, that would be another CNAME record but would have a value of something like “dealerlocator.website.com.herokudns.com” (you’d need to set this up at the application server too)

I’m no expert on this, but that’s how I have it set up in my EE site.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.