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.

Tried upgrading 2.2.2 to 2.3.1 however links and javascript don't work

December 05, 2011 12:21pm

Subscribe [4]
  • #31 / Dec 30, 2011 11:26am

    McCoy IT

    41 posts

    Tried removing the htaccess file. Nothing changed. Links still redirect back to http://www.example.com/index.php

  • #32 / Dec 30, 2011 11:51am

    McCoy IT

    41 posts

    Just going through the Output and Debugging Preferences and happened to turn on “Force URL query strings”. Links began to work… not sure why I had to turn this on when it wasn’t on before…

  • #33 / Dec 30, 2011 12:18pm

    McCoy IT

    41 posts

    http://ellislab.com/forums/viewthread/202909

    Seems to be my fix… Lea and I are in the same city and may have been using the same host.

    Getting 404 error for http://www.example.com/index.php

    All of the other links work as they should. Just when I want to go to home http://www.example.com/index.php it throws a 404./

    What would your recommendations be now that I think my issue is with the uri protocol?
    Update my htaccess to remove index.php? Unless there is a fix for the uri_protocol coming in 2.4? I would like to have www or no-www working on my site along with having index.php or not having index.php (based on your recommendation).

    Thanks

  • #34 / Jan 02, 2012 4:28am

    John Henry Donovan

    12339 posts

    Hi McCoy IT,

    What have you now changed your uri_protocol to?
    I would try changing to each of the options included in the comments above it to see how each one affects your site
    Its perfectly acceptable to change the value for uri_protocol based on your own server setup

    I would then strip back your htaccess for now to the recommended rules for removing index.php

    <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>

    You can always add back in more of your custom ones at a later stage after you have removed index.php successfully

     

  • #35 / Jan 03, 2012 6:47pm

    McCoy IT

    41 posts

    John, Sean and Kevin:

    Thanks for stepping through the checks to figure this out.

    Ended up being that darn htaccess mod_rewrite I had that caused me the grief. Used John’s suggested rewrite and removed the index.php in my url. Didn’t have to change my uri_protocol after all. I have 2.3.1 installed and everything up to date.

    Again thanks for the patience in troubleshooting this with me.

  • #36 / Jan 03, 2012 8:48pm

    Sean C. Smith

    3818 posts

    McCoy,

    Glad to hear it’s working now. We’re all here for you when you need more help in the future. Hope you have a great day.

    Sean

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

ExpressionEngine News!

#eecms, #events, #releases