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.

Migrated EE to new folder. Now links are broken.

March 27, 2009 5:15pm

Subscribe [2]
  • #1 / Mar 27, 2009 5:15pm

    Milsoft

    27 posts

    I developed our new website in EE in a development folder. I moved it to the live staging folder. I can get to the main index template, but all of my links return a 404.

    Check out http://milsoft.com/smart-grid/ to see what I’m talking about.

    Everything seems to be up and running correctly except the linking issue.

    Any ideas? Thanks!

    -chad

  • #2 / Mar 27, 2009 5:57pm

    Sue Crocker

    26054 posts

    Hi, Chad. You need to make a few minor changes to EE.

    EEKB:// I get 404s except on the main page

    Does that help?

  • #3 / Mar 27, 2009 6:12pm

    Milsoft

    27 posts

    Thanks for the quick response. I tried the methods on that page, but things are still not working.

    One thing I just thought about, would it be possible for the site to try to interpret the index.php in the url as a folder instead of the php script?

    I currently am not using any sort of .htaccess file. Should I be?

    Thanks again.

  • #4 / Mar 27, 2009 6:17pm

    Sue Crocker

    26054 posts

    No, you shouldn’t be using an .htaccess to fix this.

    If you go to one of your urls and add a ? after it, you’ll see things work.

    You need to force query strings.

      In the Control Panel, turn on the “Force Query String” preference in the Output Preferences section.

  • #5 / Mar 27, 2009 6:28pm

    Milsoft

    27 posts

    I have it turned on.

    I tried the different variations (0,1,2) of the $qtype variable in the index.php file as described in
    the link you gave me.

    Still no luck. Sorry for the trouble.

    Any other ideas? Thanks again.

  • #6 / Mar 27, 2009 6:34pm

    Sue Crocker

    26054 posts

    Chad, you must not have done something right.

    See this link?

    http://milsoft.com/smart-grid/index.php?/about-milsoft/about-milsoft/

    It works. I added the question mark after index.php.

    See the screen shot. Do you have the same thing I show?

  • #7 / Mar 27, 2009 6:43pm

    Milsoft

    27 posts

    Yes, the link works with the question mark. Does this mean that I will need to add a question mark to each of my links? If so, it wasn’t clear to me that that was the fix.

    Yes, I have that setting set to ‘yes’ just as your screenshot shows.

  • #8 / Mar 27, 2009 6:50pm

    Sue Crocker

    26054 posts

    You shouldn’t need to.

    How are you building the links?

  • #9 / Mar 27, 2009 6:56pm

    Milsoft

    27 posts

    I am using {site_url}index.php/software-solutions to build my links, and changing it accordingly for the other links.

    Looking back at the link you posted. It isn’t going to the ‘software solutions’ page. It is just going to the index page.

  • #10 / Mar 27, 2009 7:01pm

    Sue Crocker

    26054 posts

    if you’re using {site_url}index.php, you need to use index.php? instead.

    The difference is how you build the links.

    Do you have a single entry template you’re using to display the links?

  • #11 / Mar 27, 2009 7:11pm

    Milsoft

    27 posts

    ok. Now things seem to be working better.

    I changed the main navigation links, and they seem to work as we would expect them to now.

    One thing to note, the $qtype variable in the index.php file HAS to be set to 2.

    I’m still new to EE, so I’m not entirely sure what you “single entry template to display the links”. Is there a page I can read to get up to speed? Am I missing out a best practice I should be using?

    Thanks again.

  • #12 / Mar 28, 2009 2:46pm

    Greg Aker

    6022 posts

    Chad:

    Good places to do some more reading/learning about EE would definitely be Train EE, and EE Screencasts.  Basically, a “single entry” page is one that only one entry comes up on, eg:  http://example.com/index.php/site/comments/url_title, whereas the multi-entry page would be:  http://example.com/index.php/site

    As far as your initial problem, is everything up and running now?

    -greg

  • #13 / Mar 28, 2009 3:41pm

    Milsoft

    27 posts

    Thanks for the resources. I’ll check them out.

    I believe we are all setup now, thanks to Sue!

    I flipped the switch on the new website. We went from http://milsoft.com/index.php?sn=home to http://milsoft.com

    Thanks again!

  • #14 / Mar 28, 2009 3:51pm

    Greg Aker

    6022 posts

    Woot!  I’m glad you got everything sorted!

    Congrats on the site launch!  😊

    If anything else comes up, please don’t hesitate to start a new thread.

    -greg

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

ExpressionEngine News!

#eecms, #events, #releases