Hi all,
I have a setup with 2 domains same context. (Why is this the case is another question)
example.com and example.org
I wrote a small simpet which detects the version based on $_SERVER['SERVER_NAME'] and loads some aditonal content etc.
The problem is that if I have a page let's call it 'about', it gets redirected.
In the context I have set up 'example.com' as http_host
GET
http://example.com/about/ <--- page loads ok with .com specific content.
GET
http://example.com/about <--- gets redirected to '
http://example.com/about/' (with a slash at the end) then page loads ok.
GET
http://example.org/about/ <-- page loads ok with .org specific content
GET
http://example.org/about <-- redirects to http://example
.com/about
/ (.com domain and slash at the end)
I am thinking that MODx redirects based on the config not the $_SERVER['SERVER_NAME'] or $_SERVER['HTTP_HOST'].
So my question is that where in the core this redirect happens because I want to change to use $_SERVER['SERVER_NAME']?
Thank You.