Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter afex

    (@afex)

    k i figured this out, and it doesn’t involve mod_rewrite.

    in /wp-includes/classes.php find this line (1079)

    $this->category_structure = $this->front . 'category/';

    and replace it with

    $this->category_structure = $this->front . '';

    and thats it! there may be some other issues with this i haven’t found, but it does change the links generated to categories by wordpress, and following those links brings up the correct archive page.

    I tried this mod but whenever I clicked on post url, I’ll get 404 error

    Note that if you try that mod things will get interesting if you have a WP Page name the same as a Category name.

    Thread Starter afex

    (@afex)

    thats true handysolo.

    the way my site is structured, there are only two main “sections” which are the “b” and “c”, and i dont use the pages feature of wordpress. (yet)

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘how to hide category in url? (mod_rewrite)’ is closed to new replies.