WordPress.org

Ready to get started?Download WordPress

Forums

Static pages: Not Found problem (6 posts)

  1. gour
    Member
    Posted 9 years ago #

    Hi!

    I installed wp-2005-01-26 tarball with Kubrick (default) theme.

    In order to create menu bar I inserted the following code in header.php:

    <div id="navbar">
    <ul id="navbarlinks">
    <li><a href="/gtk2hs/overview/" id="overview" title="Overview">Overview</a></li>
    <li><a href="/gtk2hs/" id="news" title="News">News</a></li>
    <li><a href="/gtk2hs/download/" id="download" title="Download">Download</a></li>
    <li><a href="/gtk2hs/documentation/" id="documentation" title="Documentation">Documentation</a></li>
    <li><a href="/gtk2hs/development/" id="development" title="Development">Development</a></li>

    </ul>

    </div>

    and added/modified the code in styles.css.

    Then I created few static pages (accordinf to the above code) and link them to the menu items.

    There is no problem with the menu, but only 1st static page(Overview) is shown (News is homepage), while for others I am getting Not Found error.

    Anyone has any clue?

    (the site is on: http://atmarama.org/gtk2hs/)

    Sincerely,
    Gour

  2. gour
    Member
    Posted 9 years ago #

    Hi!

    A short follow-up: on the site when there is default install, WP displays only 1st two-created static pages, while for the rest it gives 404 Not Found error :-(

    Anyone can confirm it?

    I opened a support ticket on the bugzilla.

    Sincerely,
    Gour

    Edit: Strange enough. I played a little bit with the permalinks,
    and changing permission of htaccess and now it works :-()

  3. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    WP creates a rewrite rule for each page created. .htaccess is automatically updated with the new rules if it is writable. Otherwise, you must manually cut-and-paste the rules.

  4. gour
    Member
    Posted 9 years ago #

    rboren: Thank you very much. I forgot about dynamic of WP and therefore was hitting my head against a solid wall :-(

    When I make htaccess writable, everything works & rocks :-)

    What is the preferred permission for htaccess, i.e. does it work with less than 666?

    Sincerely,
    Gour

  5. Ryan Boren
    WordPress Dev
    Posted 9 years ago #

    That depends on your host's security setup. Try 666, 664, and 644 with 644 being most secure and 666 being least. Use the most secure one that still allows WP to write to .htaccess. For most hosts, 664 is the norm.

  6. gour
    Member
    Posted 9 years ago #

    Thanks.

    It looks I cannot go below 664.

    Sincerely,
    Gour

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.