• bikeman123

    (@bikeman123)


    Everytime I change a pages permalink and then view page I get 404 page not found.
    When I go back to page edit teh permalink has changed back.
    Why?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Shane G.

    (@shane-g-1)

    Hi,

    Reset your desired permalink from wordpress admin area and add this code in htaccess:

    # 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

    After that have a check with post and page URLs of your blog.

    Thanks,

    Shane G.

    Thread Starter bikeman123

    (@bikeman123)

    Thanks but it made no difference.
    Still got 404 and permalink still changed back.

    my permalink is /%postname%/

    I need to do this because my urls all show:
    https://www.domain.com/postname

    But I want
    https://www.domain.com/pagename

    I don’t know why wp has both pagename and postname but this is a real problem when pagename get changed during the site build but the post name doesn’t get updated by wp.

    Any other ideas?

    Thread Starter bikeman123

    (@bikeman123)

    sorry my post should have read:

    Thanks but it made no difference.
    Still got 404 and permalink still changed back.

    my permalink is /%postname%/

    I need to do this because my urls all show:
    https://www.domain.com/postname

    But I want
    https://www.domain.com/posttitle

    I don’t know why wp has both posttitle and postname but this is a real problem when posttitle gets changed during the site build but the postname doesn’t get updated by wp.

    Any other ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t change permalink’ is closed to new replies.