CodeIgniter Forums

Full Version: Advanced Controller Routing (based on domain)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2

El Forum

[eluser]stealthify[/eluser]
Just tried both of those, still 404ing.

I do notice that when I comment out this line:

Code:
#RewriteCond %{DOCUMENT_ROOT}application/modules/%1%2/ -d

The page does a full redirect to:

http://www.domain1.com/index.php/www.domain1/about

My regex is a little shaky, but am I capturing the wrong variables ('www.' as opposed to the '.com')?

El Forum

[eluser]toopay[/eluser]
You have three domain right?(one as a main domain that serve other 2 domain) or you have just two? If you have just two domain, which one domain roles as a main domain, above regex will fails.

Also what environment you use (Your OS and your server env - local or live server)

El Forum

[eluser]stealthify[/eluser]
PM sent, included some semi-private details about the domain/environment setup.
Pages: 1 2