• Hello all.

    I created a site with the WP 4.1 and the TwentyTen theme.
    I added about 6 menus with a few submenus and set them up under a menu group called “default”. Afterwards I noticed I didn’t like the default link format of “/?page_id=x”, so I read up on using Pretty Links and attempted to change the Permalink setting. Afterwards, whenever I click on the menu links, all I get are 404 errors.

    For example, I have a menu named “News”. clicking on it before the permalink change goes to “/?page_id=28”. Afterword, it tries to go to “/news” and gets the 404.

    The .htaccess was created thusly:

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

    the site is at “https://www.mysite.org/new&#8221;, hence the RewriteBase value. However, I don’t see how this rewrite would catch “?page_id” and change it to the post name (which is the format I selected).

    Am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Check page/post where your menu point. Urls are created for post/page not by menu. So look at page/post what url is there while u edit it.
    Also empty cache if you use some caching plugin.
    If you have trouble with this, try to create new post and check if that will works.

    If still some trouble you can also try to ask your hosting provider, sometimes they have special settings and you have to do some steps to works this well.

    Thread Starter aaplmike

    (@aaplmike)

    Thanks, Peter.

    Let me elaborate. I’ve done most the changes on the Page/Post pane.
    The link is shown at the top, along with a Permalink and View Page button.
    At the default settings, I see the expected default:

    Permalink: https://www.mysite.org/new/?page_id=11 [Change Permalinks] [View Page]

    When I then go to Change Permalink and choose Post Name and Save Changes, for example, and return to the page, it shows:

    Permalink: https://www.mysite.org/new/about/

    So WP shows that it has “changed” the permalink, and also .htaccess is updated with the (wrong) rewrite rules.

    If at this point I go view the site, and click on the About link (which shows the new link), I get a 404 error. There are no errors in apache’s error_log, and the access_log shows 404 being returned by the server.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing permalink format breaks menu links’ is closed to new replies.