• Resolved hebhansen

    (@hebhansen)


    Hey

    I had a page structure:

    Information
    – About
    – Contact
    – Returns
    – etc

    I deleted the information page since it was not needed. Child pages were linked direct in my secondary menu. After deleting my links broke, since old permalinks remain.

    Placing cursor in page title does not give me an edit. Mouse over the permalink on right side does not either.

    Old Url: site/information/about
    Present Url: site/information-trashed/about
    What I need is: site/about

    How can I fix this. I prefer no redirects but rather replace the old URL. I trust bots to find those pages again….

    Any help is appreciated

    I just went to official TT3 theme

Viewing 11 replies - 1 through 11 (of 11 total)
  • Did you specify a parent page when you created the child pages? If so, you will have to edit each child page to remove the old parent. You can use the Quick Edit option to do that.

    Hi @hebhansen
    Sorry for the trouble. You could go to the “Quick Edit” of the About page and change the “Parent” settings to “Main Page (no parent).” You can follow this screen recording. Let me know how that goes! ??

    Thread Starter hebhansen

    (@hebhansen)

    @faisalahammad

    Thanks brilliant. Permalink changed. I think I’m caught in a mix of things. TT3 theme shows 404 even though links are correct. Not only for edited pages, but for everything. I have placed the issue with TT3… Thx

    It’s not a theme issue. First, make sure your .htaccess file has the rewrite option enabled. If you didn’t find the code below, then add it.

    
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteCond %{HTTPS} !on
      RewriteCond %{SERVER_PORT} !^443$
      RewriteCond %{HTTP:X-Forwarded-Proto} !https
      RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    

    Afterward, return to the WordPress dashboard -> Settings -> Permalink -> Save Changes. So the existing Permalink will be flushed, and the site should work fine.

    Give it a try, and let me know how that goes! ??

    Thread Starter hebhansen

    (@hebhansen)

    How where do I change Rewrite option to enable?

    Thread Starter hebhansen

    (@hebhansen)

    I have this code in my htaccess. Do I also add the other:

    
    <IfModule mod_rewrite.c>
    		RewriteEngine On
    
    		# Protect System Files - Security > Settings > System Tweaks > System Files
    		RewriteRule ^wp-admin/install\.php$ - [F]
    		RewriteRule ^wp-admin/includes/ - [F]
    		RewriteRule !^wp-includes/ - [S=3]
    		RewriteRule ^wp-includes/[^/]+\.php$ - [F]
    		RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F]
    		RewriteRule ^wp-includes/theme-compat/ - [F]
    		RewriteCond %{REQUEST_FILENAME} -f
    		RewriteRule (^|.*/)\.(git|svn)/.* - [F]
    
    		# Disable PHP in Uploads - Security > Settings > System Tweaks > PHP in Uploads
    		RewriteRule ^wp\-content/uploads/.*\.(?:php[1-7]?|pht|phtml?|phps)\.?$ - [NC,F]
    	</IfModule>

    `

    • This reply was modified 2 years, 3 months ago by Yui. Reason: formatting
    Thread Starter hebhansen

    (@hebhansen)

    I also have this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Thread Starter hebhansen

    (@hebhansen)

    Code added. I am still getting 404 errors:

    Privacy

    Thread Starter hebhansen

    (@hebhansen)

    Im getting this error

    It’s set to post name. Do I need to change and save and then go back and save?

    I checked htaccess. Code is in the active acccess

    Thread Starter hebhansen

    (@hebhansen)

    @faisalahammad @bigmoxy

    Permalinks are still broken!

    Code is added to .htaccess
    I have saved in Permalinks

    Not working

    I have disconnected CDN
    Saved Permalinks again
    Cleared Cache

    Page permalinks are still broken and return 404. This is urgent. Can someone help please…

    Thread Starter hebhansen

    (@hebhansen)

    Short Recap:

    For anyone with this same issue:

    Inside Permalink Settings you MUST select another URL/link type. Fx date or ID > save and after you may revert back to the one you want.

    I stayed for away from this change in order to not break even more… However, way to go…

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Change permalinks that broke’ is closed to new replies.