![]() |
.htaccess issue, brand new CI install, mediatemple hosting - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: .htaccess issue, brand new CI install, mediatemple hosting (/showthread.php?tid=3468) |
.htaccess issue, brand new CI install, mediatemple hosting - El Forum - 10-03-2007 [eluser]georges[/eluser] Hey there, I've a brand new install of CI and I've only added one function to the welcome controller, test. I am using the following in my .htaccess: Code: RewriteEngine on However, whenever I have a .htaccess on my server with the above I am redirected to my dedicated server's default Apache page. I find this totally weird. I remove it and my base url of www.domain.com/ sends me to the CI default view. I upload the .htaccess and I get a CentOS default apache installation page. So weird. Anyone else ever seen this kind of behaviour? (I realize this is probably not a CI problem, but perhaps someone has the answers!) Thanks, Georges .htaccess issue, brand new CI install, mediatemple hosting - El Forum - 10-03-2007 [eluser]bijon[/eluser] Hi, Can you tell where you hosting it? If you use godaddy then you can read through Godaddy installation in wiki Thanks .htaccess issue, brand new CI install, mediatemple hosting - El Forum - 10-03-2007 [eluser]Unknown[/eluser] He's using (mt) Media Temple hosting, says it in the subject line. Georges, can you try going to Plesk, click > Server > IP Addresses, and then click the number underneath the "Hosting" column. It will let you set a default site for the IP address. Try setting that up and see if it changes anything. If not, please PM me and we'll try to work something out. We don't help with custom applications, but I want to make sure that there's nothing in your configuration that may be fixable by us (I work for mediatemple, btw). Good luck! --Arman Zakaryan - (mt) Media Temple, Inc. .htaccess issue, brand new CI install, mediatemple hosting - El Forum - 10-04-2007 [eluser]llbbl[/eluser] upload the .htaccess and try going to: http://www.domain.com/index.php If you get the CI default page -- woot! If not your CI is broken. If you get that apache page when you goto: http://www.domain.com/ Than you need to edit the htaccess file. Code: RewriteEngine on The addition of the question mark should fix it. .htaccess issue, brand new CI install, mediatemple hosting - El Forum - 10-04-2007 [eluser]georges[/eluser] Arman.mt: Thanks for dropping in on the thread. I've done as you suggested, but I am still seeing the same behaviour. One clarification, must the default site that I set be the site that I am testing now? I have 25+ domains on the server with one that should be the default, but the domain in question is not the default one. Does this make a difference? llbbl: Thanks for the input, but unfortunately the ? didn't help. I can access http://www.domain.com/index.php without an .htaccess file on the server, but I CANNOT get there with one on the server. Further information: Ok, I am in the middle of writing this post and I just went into my error_log to get some more info for all of you.... aaannddd now I feel dumb. This is what is in my error_log: Code: [Thu Oct 04 07:16:05 2007] [error] [client 64.xxx.xxx.xxx] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /var/www/vhosts/domain.com/subdomains/sub/httpdocs/ So, I modified my .htaccess to be: Code: Options +FollowSymLinks And now it works! Thanks to everyone for your input and hopefully this thread will help someone else out in the future. Georges .htaccess issue, brand new CI install, mediatemple hosting - El Forum - 10-04-2007 [eluser]llbbl[/eluser] silly apache configuration ![]() glad its working .htaccess issue, brand new CI install, mediatemple hosting - El Forum - 02-27-2010 [eluser]darrenfauth[/eluser] Quote:Thanks to everyone for your input and hopefully this thread will help someone else out in the future. Wow. This is an old thread, but I'm SO THANKFUL I found it. I am that someone! I have been messing around all day trying to get rid of the index.php in my urls. None of the .htaccess or httpd.conf examples worked for me. This is not my first project with CI and it was maddening that none of the multitude of forum threads (nor my previous experience with CI) held the answer. My local environment is: wampserver 2.0 on a Windows machine with Windows 7 My live environment is: Mediatemple dv server, Apache 2.2.3 & php5 Then I found this thread and the 'silver bullet' was to include Options +FollowSymLinks at the beginning of my .htaccess file. It eliminated the index.php from both localhost and mediatemple. |