Welcome Guest, Not a member yet? Register   Sign In
CI on Media Temple
#1

[eluser]skeletonfriend[/eluser]
Hey,
I'm about to give up on this..I'm trying to get CI to run on Media Temple without luck.

On MT (Media Temple) the 'html'-folder is where your application runs...so I've placed all the js, css, and index.php file in there. The 'application' and 'system' folder is one level up, and I've edited the path's in index.php. All I receive is a 404...

I believe my .htaccess has something to do with this...as that is all that is different from my local setup, which works.

I've read as many threads as I could find here on the forum, and none of the different approaches seem to work...I'm running CI 1.7.0

Anyone who could help a very frustrated person?
#2

[eluser]Jamie Rumbelow[/eluser]
Are you receiving a MediaTemple 404, or a CodeIgniter 404?
#3

[eluser]skeletonfriend[/eluser]
CI, same error even if I upload an fresh installation of CI (without .htaccess) so it must be the .htaccess that is causing this....problem is that I don't how to make it work?
#4

[eluser]Sarre[/eluser]
Ask Mediatemple?

Maybe they don't allow custom .htaccess files (some hosts don't)
#5

[eluser]skeletonfriend[/eluser]
They say that they won't give any support for CodeIgniter. Nice. CodeIgniter isn't really the problem, all I wanted was some help with the .htaccess-file...but no.
#6

[eluser]Pascal Kriete[/eluser]
Can you show us the code in your .htaccess?
#7

[eluser]skeletonfriend[/eluser]
File: .htaccess
Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    #remove www. from the uri and redirect with a 301 code.
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^wip.idealrecordings.com
    RewriteRule ^(.*)$ http://wip.idealrecordings.com/$1 [R=301,L]

    #rewrite uri if its not a file to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    #putting '.+' versus '.*' allows it to fall through for index.php
    #i'm using /index.php/$1 because otherwise some pages would
    #insert a ? at the end of the URI and then repeat it, (try using
    #RewriteRule ^(.+)$ /index.php?$1
    #to see what I mean)
    RewriteRule ^(.+)$ /index.php/$1

</IfModule>
#8

[eluser]Pascal Kriete[/eluser]
Can you make the proper controller show up if you add index.php into the url?

Also, what is the uri_protocol set to in config.php, and have you tried any of the other options (as per the comments)?
#9

[eluser]skeletonfriend[/eluser]
Nothing happens if I add index.php into the url. I had to set the uri_protocol to ORIG_PATH_INFO otherwise I'll just receive an error saying that some classes aren't loaded and so forth.
#10

[eluser]Pascal Kriete[/eluser]
What output do you get if you add:
Code:
echo $_SERVER['ORIG_PATH_INFO'];
exit;

To the top of index.php? Does that show the proper path?

Quote:I’ll just receive an error saying that some classes aren’t loaded and so forth.
Can you elaborate? If anything the wrong uri_protocoll will lead to 404s, it shouldn't trigger errors.




Theme © iAndrew 2016 - Forum software by © MyBB