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.

CP Home button error when url_protocol value changed from PATH_INFO to REQUEST_URI

April 05, 2011 8:35pm

Subscribe [4]
  • #1 / Apr 05, 2011 8:35pm

    David Lawrence

    41 posts

    This question may be related to a resolved thread.

    I’m having the same problem as the above thread with 404 errors on any URL with periods in the URI.

    I tried the solution of changing the config value for url_protocol from PATH_INFO to REQUEST_URI

    This fixed the 404 error on pages with any periods, but now the HOME button on my nav bar gives the error:

    The URI you submitted has disallowed characters.


    The URL the HOME button generates is:

    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/stretcher_admin_sys/index.php?S=0&D=cp


    If I enter:

    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/stretcher_admin_sys/index.php

    into the address bar, it works fine.

    Everything else in the CP is fine.

    What do I need to fix for the HOME button to work again?

    Thanks!
    David

    Moved to CodeShare Corner by Moderator

  • #2 / Apr 06, 2011 12:29pm

    Sue Crocker

    26054 posts

    Hi, David.

    Is this going to be the final name for the site, or just something in progress for now?

  • #3 / Apr 06, 2011 12:49pm

    David Lawrence

    41 posts

    Hi Sue,

    This is just the test URL for the site on the new server. Once we deploy and redirect DNS, the name for the main site will be:

    http://www.stretcher.org

    Is the temp URL causing the problem here?

    HOME button was working fine on the test server before I changed the url_protocol setting.  I want to get everything working on the test server before deploying and it makes me nervous when things break like this.

  • #4 / Apr 07, 2011 1:21pm

    Sue Crocker

    26054 posts

    Under Admin > General Configuration > Name of your site’s index page

    is set to what?

  • #5 / Apr 07, 2011 1:58pm

    David Lawrence

    41 posts

    That field is blank. I just tried setting it to “index.php” but that didn’t fix it. What should it be set to?

  • #6 / Apr 07, 2011 2:41pm

    Sue Crocker

    26054 posts

    It looks like you’re removing index.php via .htaccess? If you use index.php? does that work?

  • #7 / Apr 07, 2011 2:47pm

    David Lawrence

    41 posts

    Yes, I’m using the NSM .htaccess Generator extension to remove index.php via .htaccess.

    And yes, if I use index.php in the URL:

    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/stretcher_admin_sys/index.php

    it works fine.

  • #8 / Apr 08, 2011 3:45am

    David Lawrence

    41 posts

    I just discovered that changing the url_protocol from AUTO to REQUEST_URI also breaks Nico De Gols’ NDG Flexible Admin module in addition to the home button.

  • #9 / Apr 09, 2011 8:42am

    Greg Salt

    3988 posts

    Hi David,

    Please do contact the author of 3rd party addons for support with those items. Since using index.php as your site index page works fine and removing that with .htaccess is unsupported it looks like this issue is resolved. Do you want me to move this thread to the CodeShare Corner for you so that you can get some community support with your .htaccess mod_rewrite rules?

    Cheers

    Greg

  • #10 / Apr 09, 2011 2:20pm

    David Lawrence

    41 posts

    Hi Greg,

    This issue is not resolved. Please do not move to codeshare.

    The home button still does not work.

    And yes, if I use index.php in the URL:

    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/stretcher_admin_sys/index.php

    it works fine.

    What I meant by this is that I have to manually fix the URL in the address bar of my browser after clicking the home button to remove

    ?S=0&D=cp

    which is added to the URL end after index.php when I click the home button.

    This is the URL the home button generates:

    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/stretcher_admin_sys/index.php?S=0&D=cp


    it needs to either stop adding the ?S=0&D=cp to the end

    OR

    it needs to also add &C=homepage so that the URL looks like this:


    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/stretcher_admin_sys/index.php?S=0&D=cp&C=homepage

    That would fix the problem.


    re: .htaccess - I’m using this method to remove index.php:

    http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method

    It works fine in 1.7.0. The problem with URLs with periods started in 2.x


    Also,

    I’ve been in touch with Nico De Gols. He suggested setting url_protocol to QUERY_STRING

    That fixed the home button and his module, but again broke the URLs with periods.

  • #11 / Apr 10, 2011 2:24pm

    Greg Salt

    3988 posts

    Hi David,

    Please disable your .htaccess file mod_rewrite rules completely and replace your Site Index file with index.php at Admin > General Configuration. That should work properly. Can you confirm that doing this works properly?

    Cheers

    Greg

  • #12 / Apr 10, 2011 4:12pm

    David Lawrence

    41 posts

    Hi Greg,

    I completely commented out my .access file and then in general configuration set:

    Name of your site’s index page: index.php/

    URL to your Control Panel index page: http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/stretcher_admin_sys/index.php/


    $config[‘uri_protocol’] is set to AUTO

    With these settings, everything does work, but my URLs now all contain .index.php—like this:

    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/index.php/features/seesaw

    http://www.stretcher.org.php5-18.dfw1-1.websitetestlink.com/index.php/posts/ted_nelson_at_the_internet_archive


    What do I need to do to properly remove index.php from the URL in EE2.x?

    thanks!

  • #13 / Apr 11, 2011 4:24pm

    Sue Crocker

    26054 posts

    Hi, David.

    When it comes to removing index.php from the URL, we have to defer to the community. It’s one of those rare occasions. Moving to CodeShare Corner for additional community support.

  • #14 / Apr 11, 2011 4:37pm

    David Lawrence

    41 posts

    Hi Sue,

    I understand that there are server dependent issues at play here. Please note this is a standard Apache server, I’m following the wiki guidelines, and everything did work properly in 1.7.0.

    I’m happy to reach out to the community but was also wondering if you or someone at EL could please give me more info on how the nav HOME button URL is generated since seems to be the root of the problem.

    Thanks for your help

  • #15 / May 24, 2011 7:51am

    Clicked

    19 posts

    Hi David, Sue

    Just wanted to check if there had been any solution on this issue? I’m having the same problem with a new installation of EE2.

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

ExpressionEngine News!

#eecms, #events, #releases