Forums

changing permalinks makes pages unaccessable (12 posts)

  1. tylerestes
    Member
    Posted 2 years ago #

    thanks to all for any help with this:

    So I created a few pages just now; "About", "Video", "Photo", and "Music".

    I then configured my permalink structure differently (/archives/%year%/%monthnum%/%postname%)

    Suddenly one of my pages doesn't work. I get an "Directory Has No Index File" type of error page (my webhosts kind).

    Then i went back to the permalink section and changed them back to the default, i.e. "http://example.com/?p=123"

    And what do you know? All the pages are working again...

    Can anyone please tell me whats going on, especially, why it's affecting just the one page!

    Obviously, I'd like to have the custom permalink structure if possible

    Cheers!

  2. Samuel B
    moderator
    Posted 2 years ago #

    what is the name of the page? that doesn't work

  3. tylerestes
    Member
    Posted 2 years ago #

    "Music"

  4. batsmeow
    Member
    Posted 2 years ago #

    I am having the same problem with my "About" page. From the Manage>Pages page, I can view the "About" page, but when I attempt to navigate there from my home/blog page, I'm getting an error.

    http://batsmeow.com/blog

  5. tylerestes
    Member
    Posted 2 years ago #

    @batsmeow

    try manually changing the link code within the php template

  6. batsmeow
    Member
    Posted 2 years ago #

    i'm very new to this... in which file?

  7. tylerestes
    Member
    Posted 2 years ago #

    @batsmeow

    Try header.php. It should have something like this:

    <!-- Begin Navigation -->
    	<div id="navcontainer">
    		<ul id="navlist">
    
    <li><a>/" title="test">Home</a></li>
    <li><a href="http://example.com/video" title="test">Video</a></li>
    <li><a href="http://example.com/music" title="test">Music</a></li>
    <li><a href="http://example.com/photo" title="test">Photo</a></li>
    <li><a href="http://example.com/about" title="test">About</a></li>

    just make sure it's linking to the right pages...

  8. Shane G
    Member
    Posted 2 years ago #

    Hi,

    Remova all unwanted codes from htaccess file and add this code in taht file:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thanks,

    Shane G.

  9. tylerestes
    Member
    Posted 2 years ago #

    @Shane G

    The .htaccess file i had already was exactly the same except for not haveing the part about the 404 Error stuff.

    I've still got this one pesky page that cannot be linked to using a static example.com/test type of URL

    the weird thing is that its almost like the actual content of that page is missing. However, it is listed under my pages and i can see the code, but if i go to click "view page" or "preview page" i get a "no index page setup" error. I even tried renaming the page http://www.example.com/musik (it was music before) and it still can't find the page when i go to "view page".

    :-(

  10. tylerestes
    Member
    Posted 2 years ago #

    also, i know that i could just create a new page and paste my code from my "music" page into this new page, but i'd still like it to be called music and WordPress doesn't seem to let me do that. I'd have to call it "www.example.com/mymusic" or something...

    why is this particular url being lost by either my browser, my hosts server or wordpress???

  11. tylerestes
    Member
    Posted 2 years ago #

    I got it working!

    stupid mistake...when i changed my permalink structure my pages were setup like http://www.example.com/music, but i already had a directory on my site that was Music. So when i'd try going to that page it would take me to the directory music, which had no index page.

    That's why it was so confusing!!

  12. inpencil
    Member
    Posted 2 years ago #

    thanks for figuring out, I had same problem with "music" directory, where I"m keeping all the mp3's!! haha, so silly, but glad someone fixed this. Just need to alter the directory name.

Topic Closed

This topic has been closed to new replies.

About this Topic