ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Removing index.php with .htaccess works locally but not on live server

October 03, 2011 9:24am

Subscribe [3]
  • #1 / Oct 03, 2011 9:24am

    TheBlackHole

    72 posts

    Hi all,

    I’m used to using methods to remove index.php, I’ve read the Wiki post, and most of the time I use NSM .htaccess generator (as I am currently in this case) but this has me stumped.

    I have my EE 2 site running using MAMP on my local machine. Everything working as it should. I uploaded all files to my (Linux) server environment and no matter what link I type in it goes to the sites index page unless I add index.php to the url. The .htaccess file is being picked up as altering/deleting it affects the site.

    I spoke to support with my hosting company and mod_rewrite is supported and working. To me it looks like something isn’t quite right on the server but support assure me that it is.

    I’ve attached my .htaccess file (generated by NSM .htaccess generator) for your perusal.

    Any ideas?

    Many thanks

  • #2 / Oct 03, 2011 9:59am

    Brad K Morse

    178 posts

    Refer to this thread http://bit.ly/pqrJoj

    Someone using MAMP was able to get it to work.

  • #3 / Oct 03, 2011 10:10am

    TheBlackHole

    72 posts

    I’m not sure if you’ve misunderstood Bkmorse. It works great with MAMP it’s just not working on my live server ; )

  • #4 / Oct 03, 2011 5:27pm

    TheBlackHole

    72 posts

    Ok, I’m using NSM config_bootstrap.php. I’ve removed it and its working as expected so it must be something to do with that. Can anyone see what could be wrong? Again, it’s working fine locally.

    It won’t let me attach the file on here so I’ve uploaded it here.

    Many thanks

  • #5 / Oct 03, 2011 11:27pm

    Dan Decker

    7338 posts

    TheBlackHole,

    The only method for removing index.php that we support is outlined here. We can’t offer support for any other uses of .htaccess

    Cheers,

  • #6 / Oct 04, 2011 4:19am

    TheBlackHole

    72 posts

    Good to know that removal is supported since 2.2 : ). As mentioned I’m pretty sure that the config_bootstrap.php has something to do with my issue… just not sure what!

  • #7 / Oct 04, 2011 6:16am

    TheBlackHole

    72 posts

    Hi all, happy to report, after much searching and questions to everyone I know I found a fix via this forum post

    I changed this in the config_bootstrap.php file

    // Set this so we can use query strings
            'uri_protocol' => 'PATH_INFO',

    To

    // Set this so we can use query strings
            'uri_protocol' => 'ORIG_PATH_INFO',

    Please make a mental note of this one for whoever else has this issue.

    Mike

  • #8 / Oct 04, 2011 6:35am

    moogaloo

    200 posts

    I also had a similar problem with .htaccess and the NSM Bootstrap config.php file - http://blog.moogaloo.com/learnt-the-hard-way-dso-woe-and-superphp

  • #9 / Oct 05, 2011 4:08pm

    Dan Decker

    7338 posts

    TheBlackHole,

    Thanks for posting the solution to your issue. Moogaloo, thank you for that additional resource 😊

    If you have issues in the future, please alert us with a new thread,

    Cheers,

  • #10 / Oct 05, 2011 4:09pm

    Dan Decker

    7338 posts

    TheBlackHole,

    Thanks for posting the solution to your issue. Moogaloo, thank you for that additional resource 😊

    If you have issues in the future, please alert us with a new thread,

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases