crazy permalink problem in wordpress

Discussion in 'WordPress' started by rgordon83, Jul 18, 2007.

  1. #1
    Ok, i am in the middle of creating a new site and i am having a funny problem with my permalinks for subpages. At one point i changed my permalink structure to /%category%/%postname%/ but then i moved the location of some sub pages to be below other sub pages. But for some reason the subpage link was trying to go to the location where the page originally was, not where it currently is. So then i tried changing my permalink structure to the default (postID), but still those sup pages are trying to redirect to the old location of the page with the old permalink structure.

    Here is an example
    go to http://fenderbluesjunioramps.com/
    click on "Mods, Parts, & Extras" in the top menu
    then click "Tubes" in the right menu.
    You will see that it redirects to the homepage, but the address bar on top says "http://fenderbluesjunioramps.com/fender-blues-junior-amp/accessories-parts-mods/tubes/" that is where the page lived when i originally posted i. How come the links does not get updated when the page moves and permalink structure changes?
    thanks!@!!!!!
     
    rgordon83, Jul 18, 2007 IP
  2. anions

    anions Notable Member

    Messages:
    4,840
    Likes Received:
    179
    Best Answers:
    0
    Trophy Points:
    275
    #2
    You need to update you .htaccess file in your public_html folder.
    Hope this helps :D
     
    anions, Jul 19, 2007 IP
  3. golddragon

    golddragon Active Member

    Messages:
    583
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Make .htaccess writeable (by CHMOD)
     
    golddragon, Jul 19, 2007 IP
  4. rgordon83

    rgordon83 Peon

    Messages:
    671
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #4
    errrrrrrr

    how can i do that?
     
    rgordon83, Jul 19, 2007 IP
  5. rgordon83

    rgordon83 Peon

    Messages:
    671
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #5

    what kind of update? make it writable?
     
    rgordon83, Jul 19, 2007 IP
  6. rgordon83

    rgordon83 Peon

    Messages:
    671
    Likes Received:
    22
    Best Answers:
    0
    Trophy Points:
    0
    #6
    i think it is on, this is what it currently has in my htaccess:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress


    i think the problem is in the function that is calling the pages. here is what it looks like:


    <?php

    if ($aOptions['show_subpages']) :

    global $id;
    $aSubPages = get_page_children($id, '');
    if (count($aSubPages) > 0) :

    ?>
    <div id="child_pages">
    <h3>More Pages</h3>
    <ul class="icon jump">
    <?php foreach ($aSubPages as $page) { echo('<li><a href="' . $page->guid . '">' . $page->post_title . '</a></li>'); } ?> </ul>

    </div>

    <?php endif; ?>

    <?php endif; ?>


    i think it has something to do with the line:
    <?php foreach ($aSubPages as $page) { echo('<li><a href="' . $page->guid . '">' . $page->post_title . '</a></li>'); }

    if i knew PHP at all i'm sure i could figure out what that means. My guess is that it's hard coding what the page links should be, and when i changed the permalink structure it messed up the pages i created, but the problam is that i changed permalink structure back and those pages are still messed up.


    any ideas....
    thanks!
     
    rgordon83, Jul 19, 2007 IP