WordPress.org

Ready to get started?Download WordPress

Forums

category mod rewrite - category_name= - issue (1 post)

  1. war59312
    Member
    Posted 8 years ago #

    Hey,

    I am trying to fix a category issue where if someone tries to view a category with index.php on the end of the url they get no results found, its mostly search engines like google.

    Orginal URL:

    http://www.war59312.com/category/linux/index.php

    Needs To Be:

    http://www.war59312.com/category/linux/

    Rewrite Rule Is:

    RedirectMatch permanent /category/(.*/)index.php$ http://www.war59312.com/category/$1

    Results In:

    http://www.war59312.com/category/linux/?category_name=linux/index.php

    Why the heck is is adding the ?category_name=linux/index.php ?

    Any ideas?

    Thanks,

    Will

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags