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.

Problems migrating to EngineHosting.com - Force URL query strings

January 30, 2012 11:16am

Subscribe [3]
  • #1 / Jan 30, 2012 11:16am

    7seven7

    1 posts

    Hi everyone,
    I was hoping to get some help with some problems I am running into moving our website from our existing host to a new host.  The problem I am running into after migrating the site to a new host is the site template appears to be broken.  However, the control panel pages all appear to display and function properly on the new host.

    I moved our existing website over using the steps mentioned in the ExpressionEngine User Guide: http://ellislab.com/expressionengine/user-guide/installation/moving.html.  For a number of days, I assumed that I had an incorrect path for the site template somewhere in the configuration files, so I looked over all the files making sure there were no static references to the old host.  Moreover, I get a 404/Web page cannot be found error each time I try to navigate to another interior page.

    After reading over other posts in this forum, I figured out that the site template was appearing broken probably because of the URL problems.  On Friday I tried to turn on Force URL query strings under Admin->System Administration->Output & Debugging.  Turning Force URL query strings seems to partially fix the webpage template.  However, the homepage pictures do not appear any longer nor can I move to any other interior pages.

    I tried to change the settings for the URI PROTOCOL to PATH_INFO and ORIG_PATH_INFO in config.php file and leaving the Force URL query strings off, but these do not seem to change anything.  The default setting of AUTO with FORCE URL query strings seems to fix the site template issue.

    |--------------------------------------------------------------------------
    | URI PROTOCOL
    |--------------------------------------------------------------------------
    |
    | This item determines which server global should be used to retrieve the
    | URI string.  The default setting of "AUTO" works for most servers.
    | If your links do not seem to work, try one of the other delicious flavors:
    |
    | 'AUTO'   Default - auto detects
    | 'PATH_INFO'  Uses the PATH_INFO
    | 'QUERY_STRING' Uses the QUERY_STRING
    | 'REQUEST_URI'  Uses the REQUEST_URI
    | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
    |
    */
    $config['uri_protocol'] = 'AUTO';

    The link to the broken website is http://tinyurl.com/87ewg6p.  Any help/recommendations would be appreciated as I do not know what other settings I should be looking at.  I had the same problem when I tried migrating to GoDaddy and now EngineHosting.com.  Thanks.

     

  • #2 / Jan 31, 2012 1:43pm

    Shane Eckert

    7174 posts

    Hello 7seven7,

    Welcome to the forums!

    I am sorry you are running into this problem, I will do what it takes to get you going.

    Please be on the look out for an email from me.

    Cheers!

  • #3 / Feb 08, 2012 10:31am

    7seven7

    1 posts

    After Shane confirmed everything was setup correct with ExpressionEngine, I figured out that the entire issue was because I was missing the .htaccess file in the root folder to remove index.php from my URL.

    I followed the User Guide and created a .htaccess file with the following:

    <IfModule mod_rewrite.c>
            RewriteEngine On
    
            # Removes index.php
            RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ /index.php/$1 [L]
    
            # If 404s, "No Input File" or every URL returns the same thing
            # make it /index.php?/$1 above (add the question mark)
    </IfModule>

    Adding a .htaccess file corrected the site template from appearing properly!  Thanks.

  • #4 / Feb 09, 2012 6:47pm

    Shane Eckert

    7174 posts

    Hello 7seven7,

    I am really happy to hear it.

    Thank you for using the ExpressionEngine forums!

    Have a great week.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases