Forums

Troubles with links to blog posts and static pages (8 posts)

  1. mtp1032
    Member
    Posted 7 months ago #

    This is my second day with WP so I'm quite new. Unfortunately, I've been unable to find a direct answer for my issue (codex, youtube, etc.), so here goes. I'm having two seemingly simple problems:

    To begin, I have permalinks enabled (month/day)

    Problem I

    When I create a static page (with no parent), the tab shows up on the home page, but when I click it I get the "webpage not found" error. Similarly, when I create a [static] subpage, clicking on the subpage also yields the same error.

    The url of the static page WP is trying to find is

    http://.../blog/first_static_page/

    Problem II
    I can see, and scroll through, the blog roll (i.e., the main page with all the blog entries), but I can not access any of the entries individually. For example, when I click on the title of any individual blog entry, I get the "webpage not found" error.

    The URL of the [failing] entry is

    htt://.../blog/2011/10/blogentry/

    I'm sure I am missing something. Any help would be greatly appreciated.

    Michael

  2. Rev. Voodoo
    Volunteer Moderator
    Posted 7 months ago #

    are you on a linux server?

    Is mod_rewrite enabled on the server?

    Often a link to a real live site can help us far more than hypothetical examples..... makes it possible to troubleshoot

  3. Navaratnam
    Member
    Posted 7 months ago #

    Is your WordPress root folder writable? Once you set the permalink anything other than default it will create the .htaccess file in the WP root folder. If the folder is not writable then it will show the message below the permalink setting. In that case you can copy that and create the .htaccess file

  4. mtp1032
    Member
    Posted 7 months ago #

    Thanks. Here are answers to your questions:

    First, I'm on Windows 7.

    Second, here's my .htaccess file

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

    (I assume the wp root folder (blog) is writable. I can edit, copy, and delete files contained under .\blog.)

    Finally, on the WP Permalinks Editing page, there is no message at the bottom saying that my .htaccess file is not writable.

    Hope this helps,

    Michael

  5. Rev. Voodoo
    Volunteer Moderator
    Posted 7 months ago #

    It does. you directory is writeable, as you have a .htaccess file generated by WP

    Windows 7 is your computer OS, I was asking what your server runs. Your host. If you don't know, you would need to ask your host if your server is linux, and if mod_rewrite is on

  6. mtp1032
    Member
    Posted 7 months ago #

    Thanks, again. However, I know what you asked. My server is running Windows 7 -- I'm self-hosting using the latest WAMP.

    Cheers,

    Michael

  7. mtp1032
    Member
    Posted 7 months ago #

    Thanks to both of you, but I discovered that the mod_rewrite.so was not enabled in htppd.conf. I was confused because the permalinks editing page wasn't showing an error.

    I wonder how difficult it would be to add a runtime check to see whether mod_rewrite() is enabled and issue a warning if it's not.

    Anyway, all is well and thanks again for your time.

    Michael

  8. Rev. Voodoo
    Volunteer Moderator
    Posted 7 months ago #

    My server is running Windows 7 -- I'm self-hosting using the latest WAMP.

    So technically you were on apache, not IIS, which is what I was trying to get to. linux v windows flavour server.... nothing to do with OS. None of my suggestions would amount to anything if you were on IIS

    But, you got it figured out, which is groovy!

Reply

You must log in to post.

About this Topic