WordPress.org

Ready to get started?Download WordPress

Forums

Permalink wishes (2.7) (14 posts)

  1. fob
    Member
    Posted 5 years ago #

    If you make use of WordPress as a CMS it looks like having to rethink the permalinks every time you upgrade. With WP 2.6 I had to change them once again.

    Making some test with WP 2.7 RC1 yesterday I recognized that the last modifications will not work for me again because of not being able to go to the blog and use a pagebar to see elder entries. It only works within categories and archive pages. On blog pages it is showing up an Error 404 if you do not change the permalinks again and again and again, depending on the version you want to use.

    Shouldn`t it be possible to include an always working standard permalink structure, e.g. something that shows everybody that he is currently browsing blog pages? Permalinks that separate the blog from the rest?

    Example:
    --------
    Posts: /my-blog/%permalink%/
    Tags: /my-blog/tag/
    Categories: /my-blog/categories/

    My greatest wishes for upcoming WordPress versions would be that you never have to touch old permalinks again if you dont want to - even if youre working with predefined homepage and blog directory. ;-)

  2. Your permalinks shouldn't be changing between any upgrade... They're set in your .htaccess file, and that shouldn't be getting wiped out.

  3. fob
    Member
    Posted 5 years ago #

    I already upgraded several times (my own blogs and customer blogs, too) and so I know what I`m talking about. I had to change the permalink structure more than one time to make the things work as they did before.

    .html -> Slash variant
    root variant -> sub directories
    ...

    and with 2.7 even the sub directories will not work anymore if I don`t change the structure again. Some things work other things do not. I can not live with those that would not work for me anymore...

    Edit: It is much easier if you are working with a simple blog. If you separate blog and pages working with a template for your start page it is much more difficult since Filosofo Homepage Control (plugin) should not be used anymore.

  4. I've upgraded three blogs, and I've never had to reset my permalinks, which is why I'm confused.

    How are you making these changes, out of curiosity? Is your server IIS or Apache?

    Honestly, I just make a backup of my .htaccess, upgrade and if needed (which it never has been) restore my .htaccess. Done in 5 seconds.

  5. fob
    Member
    Posted 5 years ago #

    It could be as easy as you said. But unfortunately it is not. If you do not touch your homepage settings things might be very easy. If you do so you may run into trouble sooner or later because permalinks (SEO URLs) and settings for categories and tags do not like each other anymore. The easiest way to find out if it works or not is to click on your blog and try to read elder posts. If you get an error 404 you know that it is time to update your permalinks again and write several mod_rewrite rules to redirect elder posts, archives, tags and categories to the new targets. Sometimes you redefine WordPress Rules or make use of a plugin to resque your permalinks. But the day will come where you give it up and accept the new rules...

    I know that you will not have this problem if you use your blog itself as your homepage or if you do not try to make the best of URLs. Using a page instead seems to be a problem as well as German permalinks that never worked acceptable without a plugin to solve this problem.

  6. fob, I'll ask again, in the hopes that I can understand what it is you're doing, and why you're having such a bad time of it all :)

    How are you making your permalink changes? If you're following directions from other sites, can you link to them?

    SEO Changes - Are you using a plugin? If so, which one?

    Are these problems happening in the built-in WordPress navigation or when you make your own links within your posts to other posts?

    What, exactly, do you have for your Permalink settings? If they're the ones you mention above, they should work without issue.

    The 'dream' Permalink structure you've listed is pretty much what I'm using and I've never had a problem upgrading. I use an SEO pack, and again, no problems. I've upgraded from version 1.5 all the way up through 2.7 without issues. It can be done, but if you want help, you need to help us understand what you're doing since, clearly, the directions aren't giving you the same results I'm getting :)

  7. fob
    Member
    Posted 5 years ago #

    Let`s see:

    This is my home: http://www.fob-marketing.de/
    This is my blog: http://www.fob-marketing.de/marketing-seo-blog/

    My categories are currently looking like that:
    http://www.fob-marketing.de/marketing-seo-blog-kategorie/marketing/

    Tags are looking like this:
    http://www.fob-marketing.de/marketing-seo-blog-tag/seo/

    Artcles (Permalinks) currently look like this:
    http://www.fob-marketing.de/marketing-seo-blog/broken-links-checker.html

    I decided to use this kind of links because of permalink trouble with WP 2.6. Actually I ran into Google Trouble with it although I made use of mod_rewrite to rescue things where possible. May be too much...

    Testing WP 2.7 there seems to be a need for an additional fix because of not being able to surf on elder blog pages again ( example: http://www.fob-marketing.de/marketing-seo-blog/page/2/ which will not work with WP 2.7 anymore), just in categories, as long as I do not add something - e.g. the date or the post number - to the permalink string of my urls (in admin settings) what I definitely do not want!

  8. fob
    Member
    Posted 5 years ago #

    Sorry Ipstenu, may be this does not look very friendly. I also could have chosen another blog for my examples. Well - it is meant friendly. Thanks for your interest in this problem.

  9. All those links work (or they seem to, I don't read much German).

  10. eiland
    Member
    Posted 5 years ago #

    hm, i just lost my permalinks after upgrading to 2.7, but i fonud them back after saving them again in /wp-admin/options-permalink.php

  11. Did you delete your .htaccess file when upgrading?

  12. fob
    Member
    Posted 5 years ago #

    I upgraded today. Issues must be fixed with a small plugin provided by FastAgent (necessary since WP Version 2.2). It furtunately works with WordPress 2.7, too:

    <?php
    /*
    Plugin Name: Smart Trailing Slash
    Plugin URI: http://www.fastagent.de/
    Description: Gives permalinks a trailing slash, but removes it in permalinks with a filename extension, e.g. .html
    Version: 1.0
    Author: Peter Claus Lamprecht
    Author URI: http://www.fastagent.de/
    */
    
    add_filter('user_trailingslashit', 'pcl_smart_trailingslashit');
    
    function pcl_smart_trailingslashit($string) {
    	if ( '/' != substr($string, -1)) {
    		$string .= '/';
    	}
    	if (0 < preg_match("#\.[^/]{1,}/$#", $string)) {
            $string = rtrim($string, "/");
    	}
    	return $string;
    }
    ?>
  13. jcow
    Member
    Posted 5 years ago #

    I have upgraded probably 20 sites multiple times over the years, some since 1.5, and about 3 sites recently to 2.7. I have never had a problem with the permalinks that wasn't linked to my own mistakes.

    Don't delete your htaccess. If you do, be sure that it is editable by WP and log in and update permalinks again.

    If you are having a problem with permalinks, you did something wrong, and you should figure out what it is so that you don't do it again.

    period.

  14. EdwinO
    Member
    Posted 5 years ago #

    I don't know I guys. I'm relatively new to WordPress but I ran into all sorts of problems with Permalinks. For me the key seems to be the htaccess file. This worked for me.

    Cheers,

    Edwin

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags