Viewing 8 replies - 16 through 23 (of 23 total)
  • Using “/.” as your category base will result in links like this all over your blog:

    https://www.example.com/./news/

    Look at your source if you don’t believe me.

    Most browsers are smart enough to recognize how this, as a server path, is the same as leaving the “/.” out. So it’s the browser who “rewrites” the link to

    https://www.example.com/news/

    IE6 appearently doesn’t. But you can see how this is quite a dirty hack.

    Moshu is right, there is no good solution for this, and this will result in problems.

    Which is sad, because if it were possible, the link structure of your blog would be logically hierarchical, which would help SEO. If you’re using /%category%/%postname%/ that is.

    IE6 appearently doesn’t. But you can see how this is quite a dirty hack.

    Well, to clean it up you can just set a 301 redirect through .htaccess or with the plugin mentioned above so that it works in all browsers, with no SEO penalty.

    Well, to clean it up you can just set a 301 redirect through .htaccess

    Mind giving those of us who always mess up .htaccess an example version of the code?

    It would be something like this (it works for even more than one dot and also eliminates multiple slashes):

    RewriteRule /\.*/(.*) /$1 [R=301]

    But it seems to get ignored by WordPress, no matter where I put it in the .htaccess file. Using the Redirection Plugin works, though.

    Usually all the “smart” workarounds to remove it end up in broken blogs.
    You were warned…

    I’m also beginning to think that moshu is right. I just found out this little detail:

    https://example.com/anything-at-all!/category_slug

    displays exactly like

    https://example.com/category_slug

    This means anything can be put between the domain url and the category_slug and it won’t cause a 404. Help!

    PS: I tried the default category base and a custom one and it didn’t fix it.

    Good evening,

    I read everything and although you did give me doubt about it, I have been keeping a close eye at the result on Google for the past weeks. The site has been online for 3 weeks now and is climbing nicely to first page without using redirection tools or modifying the .htaccess.
    About the site itself, I have not encountered any errors while or after posting.

    Boh…I don’t really know what to think!

    About this:
    https://example.com/anything-at-all!/category_slug
    Why would someone type that kind of url except someone like us???
    Then again I tried it on another site which as not the urls modified and it does the same defect for the articles tipe mySite/myPost is the same as mySite/anything-at-all!/myPost and won’t give error 404.

    Well, if someone wanted to discredit a site it could link to an article and add “porn” or “idiot” in the url and that would get indexed by search engines, thus becoming a major embarasment for the site owner.

    This requirement for a category base is pretty much a religious tenant at WordPress… and I’ve never understood the ferocity.

    I’ve been using the /. “hack” for about two years, since I love simple, elegant URLs. I’d be happy to leave my site’s URL to await ‘major embarrassment’. ??

    -Jeff

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Removing ‘Category Base’ From Permalinks’ is closed to new replies.