Forums

Permalink Issues - Need advanced help (5 posts)

  1. ddzc
    Member
    Posted 1 year ago #

    Hi everyone,

    I'm going nuts here trying to configure these permalinks. None of the variables will work with my site (%postname%, %category% , etc).

    The main reason is because I have sub-categories for everything.

    3 issues:

    1) For the posts...this one kind of works for me (/%category%/%postname%). The problem is, it shows my parent and sub categories in the URL. Is there any way I can specify or configure the parmalink so it just shows the sub category name in the URL?

    2) Optional - Category Base - if this is left blank, "/category/" is in my url after the domain. I want this eliminated OR if I type something custom here...again it adds my parent and sub category in the URL...I just want to show the sub category if I go this route...

    3) Category Slug - Any way i can hack this so it accepts periods?

    Thanks!

  2. Hax
    Member
    Posted 1 year ago #

    2 ) to remove the category base you can use this plugin http://wordpress.org/extend/plugins/wp-no-category-base/

    unless you know php and rewrites and you want to so your own rewrites here is a page that will help you do that http://codex.wordpress.org/Function_Reference/WP_Rewrite

    1 ) for the categories and subcategories the only thing that you can do is not have subcategories or again try to do you own rewrites.

    3) what exactly you want to do with periods? because you can do something like this on yourr permalinks /%category%/%postname%.html

    I don't recommend hacking wordpress core files if you want to update later on.

  3. ddzc
    Member
    Posted 1 year ago #

    Thanks so much for the response. I figured out most of my issues...the only thing is the period. I have certain pages about websites, like google. I wanted to end the url with .com. For eg, mysite.com/google.com.

  4. Hax
    Member
    Posted 1 year ago #

    on your permalink you should be able to add something like this /%category%/%postname%.com but it will only show on pages and single post

  5. ddzc
    Member
    Posted 1 year ago #

    Yes, I have that for posts which are working good...but I wanted to add a .com or even a .html to the end of the category name for the category pages...unfortunately, wordpress wont allow it: "The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens."

    Any way at all to get the slug to accept periods?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.