• Resolved jennifer55

    (@jennifer55)


    Hi, I have reconstructed my website on a WP platform (http://algorfa.co.uk) – in the directory /algorfa/

    This morning I followed the instructions with the .htacess and index.php so that WP still works from its directory, but it opens from the website’s root. It works great: except when I click on ‘Home’ it opens the page that is next in line on the nav menu.

    The WP is working with the ‘Path Theme’.

    I’ve activated the Twenty Twelve theme, and clicking the ‘home’ link takes me to the correct home page. So obviously there is something going on with the Path theme.

    I do have the ‘Quick Page/Post Redirect DEV’ plug activated – tried deactivating it and it made no difference.

    The .htaccess the code is:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Tho’ the code below works the same as the code above (so I’m not sure which is right – or does it matter?):

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /algorfa
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /algorfa/index.php [L]
    </IfModule>
    
    # END WordPress

    Is there a way I can change the coding to point to the home page?

    Failing that, removing the home button altogether, I could then create a page and redirect it to the root index.

    BTW there are no other files in the root called index.html or similar.

    Would really appreciate your help. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Phil

    (@owendevelopment)

    The code above is the one you want.

    I’d check 2 places first:

    1. Appearance -> Menus – and check that the home menu item is correct there.

    2. Settings -> General – and check that WordPress Address (URL) and Site URL addresses are correct.

    Out of the two htaccess files, if you are looking for the site to sit on the domain root, the first snippet is the one you want.

    Hope this helps.

    Phil

    Have you reviewed creating a static front page?

    Thread Starter jennifer55

    (@jennifer55)

    Solved….. dhhhhh

    In the menu I had the Home link set to /algorfa/

    Took the directory out, and yessssss!

    Sorry if anyone’s time has been wasted.

    But thought I’d note the solution in case someone has the same problem.

    Thread Starter jennifer55

    (@jennifer55)

    Thank’s Esmi and Phil, Phil you were correct!

    Phil

    (@owendevelopment)

    No time wasted here – we’re all learning new things.

    Glad it’s sorted for you.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Home link going to wrong page’ is closed to new replies.