WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can't make page links work: 404 apparently no matter what (7 posts)

  1. welcome
    Member
    Posted 6 years ago #

    I can't make a page link I've made in a sidebar text widget work.

    I've read the permalinks doc, changed the permissions on my .htaccess file, changed the permalink settings in the options panel, but I'm having zero success. I'm missing something, could someone wiser help?

    Right now:

    -.htaccess permissions are 646

    -permalink structure is set to date-and-name-based

    -the page title is 'read an excerpt' and the slug is 'read-an-excerpt'

    -the link in the widget is Read an <a href="http://seandungan.com/unwelcomeness/?page_id=48">excerpt</a

    -no matter what I set the permalink structure at, when I click 'view' for the page in question in the page management section it always comes up .../?page_id=48 in the address window.

    -when I'm logged in, and test the site in a separate window, the link works. When I'm logged out, it doesn't.

    -when the link is clicked, http://seandungan.com/unwelcomeness/read-an-excerpt/ (not /?page_id=48) comes up in the address window, then you get a 404.

    Thanks for your help.

  2. welcome
    Member
    Posted 6 years ago #

    more info:

    I followed instructions in a WordPress doc, which suggested that I delete the contents of my .htaccess file, and replace it with a blank file. Which I did, then the server made the site inaccessible for 12hrs, until the service provider took some weird code out of the file that had mysteriously appeared there, messing up my blog. Now the site's back up, but still the link doesn't work.

    please help!

  3. whooami
    Member
    Posted 6 years ago #

    you cannot have this:

    (from your widget)
    http://seandungan.com/unwelcomeness/48/

    and this:
    (from your post above)
    http://seandungan.com/unwelcomeness/read-an-excerpt/

    work simultaneously.

    Furthermore, if you have the normal, old, not pretty permalink in the widget, as you indicate above thats where its going to send you..its not going to send you off to the pretty permalinked page.

    If you want someone to look further it might be nice if you made a login for ppl to use. Since you indicate that you see it when logged in but not when you arent.

    Also, it might be nice to know what your current permalinks are set to, and what your .htaccess reads.

  4. welcome
    Member
    Posted 6 years ago #

    Thanks whooami.

    Since I have to be logged in as admin for the link to work, I made an admin login for testing purposes: username= test pw= test

    Currently, permalinks are set to Date and name based: /%year%/%monthnum%/%day%/%postname%/

    .htaccess reads:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /unwelcomeness/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /unwelcomeness/index.php [L]
    </IfModule>
    
    # END WordPress
  5. whooami
    Member
    Posted 6 years ago #

    you really dont want a wide open public admin acct :) Make test a subscriber

  6. whooami
    Member
    Posted 6 years ago #

    i edited the page slug, btw. and that page isnt published, its a draft. when you publish it, the rest of the world will be able to see it.

  7. welcome
    Member
    Posted 6 years ago #

    ACK! Of course, thanks.

    And thanks for kindly pointing out my unbelievably simple mistake!

    Very much appreciated.

    Resolved

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags