We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Revo Discussions & Support
Revolution 2.2
Search
Answered
How to use xRouting
☆ A M B ☆
721 Posts
rx2
Reply #1,
12 years, 1 month ago
Hello,
We've installed xRouting as the domain strategy has changed from each context having their own unique URL such as:
http://texas.company.com
to
http://company.com/texas/houston
So from a regular domain strategy to using a path based domain.
We've setup up the Houston contexts with the following example settings (these are not real but they will do for this example):
http_host: company.com/texas/houston
base_url:
http://company.com/texas/houston/
But the URL doesn't resolve to the context.
I couldn't find examples to know if my context settings are correct. What is the correct format for each of these settings for domains like this?
This question has been answered by rx2.
See the first response.
discuss.answer
☆ A M B ☆
721 Posts
rx2
Reply #2,
12 years, 1 month ago
I figured it out.
http_host is the same as the parent URL, i.e. company.com
base_url is the path, i.e. /texas/houston/