WordPress.org

Ready to get started?Download WordPress

Forums

Rewrites Help (3 posts)

  1. abdul.mannan
    Member
    Posted 10 months ago #

    Hi All.

    I was having the issue with the urls.

    Anyone please let me know what should i do if i want to accomplish the following.

    Currently i have this.
    http://www.mysite.com/news-category/4/

    But i want the url to be

    http://www.mysite.com/news-category/us-news/

    What rule should i write in htacess file.

    Thanks in advance.

  2. esmi
    Forum Moderator
    Posted 10 months ago #

  3. abdul.mannan
    Member
    Posted 10 months ago #

    Thanks for your response.

    I already have seen the permalink structure. I have something different. I have one news category template. Where i check if the id = 4 , then show a specific page content, else show different. And i have many links with different ids to come up on this page. Everything is done.

    I only want to change the news-category/4/ to news-category/us-news/. Means my link should say something like http://www.mysite.com/news-category/us-news/ but by using htaccess, i will make it like news-category/4/ so everything works fine.

    Let me know if you any query so i will try to explain it in more detail.

    Thanks

Reply

You must log in to post.

About this Topic