WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Perma links on Home creating problem (5 posts)

  1. ahsan.abassi
    Member
    Posted 10 months ago #

    Hi,

    I have changed my word press permalinks to /%postname%/.
    Every menu is working fine,but when i visit any other menu and try to get back to home by clicking 'Home' in menu it create a wrong link,and refreshes the current page.
    For example when i visit "Support" its link is http:/site/support/
    but when i click "Home" menu from support page, it create link like http:/site/support/index.php.It should be http:/site/index.php.

    Home is custom link menu with 'index.php'.
    Thanks in Advance.

    Regards

  2. lettergrade
    Member
    Posted 10 months ago #

    I wasn't clear: is your menu custom coded into the header.php file? Or are you using the Appearance > Menus screen to create the link?

    If it's the former, you should code it into the header.php file as <?php bloginfo('url'); ?>
    That will go to the home page no matter where in the file structure you are, or what your url is set to.

    If you're using the Appearance > Menus screen to create your custom link menus, then you should just use the automatic 'home' it provides, or the root url for your home page (http://www.yoursite.com) as your link.

  3. ahsan.abassi
    Member
    Posted 10 months ago #

    Thanks for your reply.

  4. ahsan.abassi
    Member
    Posted 10 months ago #

    I am using Appearance > Menus to create Menu,which is custom link Menu.I give 'index.php' in custom link.
    Any how i solved the problem,just add the page which i
    am using on front page to menu and call it 'home'.

  5. lettergrade
    Member
    Posted 10 months ago #

    Perfect, glad it worked out for you.

Reply

You must log in to post.

About this Topic