01-13-2010, 04:27 AM
[eluser]Maglok[/eluser]
EDIT: See the 2nd post, this is all based on wrong conclusions.
I have been writing a CI app for a while now and it is now getting moved to a production server.
That server has some subdomains setup that are giving me hell though. The forum has some topics on subdomains, but usually not in the way I am trying to set it up.
The dir structure of the server is kinda like this:
The dirs are tied to subdomains so ./sub1 would be sub1.domain.something.
The idea is that the test.domain.something is the test environment and I am thus trying to get it to work. The htaccess is totally not playing along though.
I had to go with the full url in the RewriteRule or it wouldn't work at all. Now I get proper 404's from my app, but if I try to go to any exsisting page like so: test.domain.something/index.php/nieuws
I get 'No input file specified.'
I want to setup a test environment on this subdomain first before I deploy it on the main domain (which will be tricky, but doable). So that in the end I have 2 CIs running. One in test.domain.something and one on www.domain.something that branches to all subdomains except test.
Do I make any sense at all?
EDIT: See the 2nd post, this is all based on wrong conclusions.
I have been writing a CI app for a while now and it is now getting moved to a production server.
That server has some subdomains setup that are giving me hell though. The forum has some topics on subdomains, but usually not in the way I am trying to set it up.
The dir structure of the server is kinda like this:
Code:
./
./sub1
./sub2
./sub3
./test
The dirs are tied to subdomains so ./sub1 would be sub1.domain.something.
The idea is that the test.domain.something is the test environment and I am thus trying to get it to work. The htaccess is totally not playing along though.
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|rss|scripts)
RewriteRule ^(.*)$ http://test.domain.something/index.php/$1 [L]
I had to go with the full url in the RewriteRule or it wouldn't work at all. Now I get proper 404's from my app, but if I try to go to any exsisting page like so: test.domain.something/index.php/nieuws
I get 'No input file specified.'
I want to setup a test environment on this subdomain first before I deploy it on the main domain (which will be tricky, but doable). So that in the end I have 2 CIs running. One in test.domain.something and one on www.domain.something that branches to all subdomains except test.
Do I make any sense at all?
