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.

Pages not resolving to correct location - possible htaccess issue?

April 27, 2012 12:00pm

Subscribe [1]
  • #1 / Apr 27, 2012 12:00pm

    efetherston

    1 posts

    This question may be related to a resolved thread.

    I am trying to migrate an EE site from one server to another and I am am having a problem getting any other page other than the index page to show up correctly. I suspect this is a htaccess issue, but I have had no luck resolving it. I am new to EE and don’t if I am going about trying to resolve this correctly. I have included the current code from my htaccess file and two example links below. Thanks for any assistance.

    Working link:
    http://hbmdata2.com/ugiperf/ee/?/contact

    Broken link:
    http://hbmdata2.com/ugiperf/ee/contact

    Code in my htaccess file:

    <IfModule mod_security.c>
    SecFilterEngine Off
    </IfModule>
    
    <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>
  • #2 / Apr 30, 2012 11:49am

    Dan Decker

    7338 posts

    Hi efetherston,

    I’m sorry you are having trouble with .htaccess!

    It looks like you have ExpressionEngine in a sub-folder. If that’s the situation, you need to include the sub-folder in your RewriteRule directive:

    RewriteRule ^(.*)$ /ee/index.php/$1 [L]

    Make that change and let me know the result.

    Cheers!

  • #3 / Apr 30, 2012 12:02pm

    efetherston

    1 posts

    Thanks for the help! I actually resolved the issue on my own on Friday. Sorry, I should have closed the thread.

    Thanks again for your help.

  • #4 / Apr 30, 2012 5:38pm

    Dan Decker

    7338 posts

    Hi efetherston,

    No worries! I’m glad you were able to sort it out.

    If you have need us in the future, please feel free to open a new thread.

    Cheers!

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

ExpressionEngine News!

#eecms, #events, #releases