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.

htaccess issue after a migration

November 09, 2012 7:29am

Subscribe [2]
  • #1 / Nov 09, 2012 7:29am

    Esparon

    9 posts

    Hi everyone,

    My team and I developed a site for a bank using ExpressionEngine (2.2). We finally got to migrate it to the new server. But after copying the files and database, updating all the paths in the config files ... we just can’t access anything after the base path. I cannot access the admin control panel.

    The path http://www.mysite.com/ is ok. But our “js” template group is not found (it contains our javascript files). We have a css group stored the same way which is found.

    When we try to access anything like http://www.mysite.com/anything, we get a 404 error. We use the htaccess file provided in the official documentation. I tried http://www.mysite.com/index.php/anything : no more 404 error, but the page is not complete.

    On our test server, everything worked fine.

    Do you have any idea about what to do ?

    This Monday I’ll try a new migration. I’ll try to see if it has something to do with templates saved as file or only in the database.  But if it does not work, I would like to have some more ideas so that I will not be left without any solutions.

    PS : Sorry for the mistakes, I’m french.

  • #2 / Nov 09, 2012 9:20am

    glenndavisgroup

    436 posts

    Hi Esparon,

    A few things you should do before moving your EE website to another server:

    1) Put the website in offline mode
    2) Clear the EE site cache
    3) Synchronize your image folders and template files
    4) Take a copy of everything and move it to the new server

    On the new server after you copy all your files/folders and db:

    1) Check your folder permissions and set them accordingly
    2) Check your config.php and update any paths and URLs
    3) Check your database.php and update any info for your db if different
    4) Comment out all special htaccess rules you have set for EE so you can test with the bare minimum. If all works with the rules removed then start turning one rule at a time on and test until you get everything working. This way if anything goes wrong you know which rule caused the issue.

    I hope that helps.

    Cheers,

    Mike

  • #3 / Nov 11, 2012 11:58pm

    Esparon

    9 posts

    Hi Mike,

    As I am trying to move the website today, I’ll start from nothing. I follow the official documentation, and I will apply your directions. I’ll keep you informed about how it goes.

  • #4 / Nov 12, 2012 5:43am

    Esparon

    9 posts

    Hi again Mike,

    Our host add actually left the AllowOverride setting for htaccess with “None”. So our htaccess file was not applied. I don’t have any problem left with this now but I have another one. I’ll explain it in another topic so that the forum keeps clean.

  • #5 / Nov 12, 2012 10:23am

    Shane Eckert

    7174 posts

    Hi Esparon,

    I am glad that you have sorted your htaccess issue out. That’s great!

    It sounds like you are going to open another thread. I will be on the lookout for that one.

    Cheers,

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

ExpressionEngine News!

#eecms, #events, #releases