WordPress.org

Ready to get started?Download WordPress

Forums

Change the default permalink for pages (4 posts)

  1. Sudar
    Member
    Posted 6 years ago #

    I have WordPress installed in a directory called /blog/ and the permalink for my blog posts are set like this. http://mydomain.com/blog/post-slug.html

    Any page created in my blog has the permalink http://mydomain.com/blog/page-slug

    but I want to change it to http://mydomain.com/page-slug/

    Can any one suggest me the configuration or plugin to do this. Thanks!

    --Sudar

  2. Sudar
    Member
    Posted 6 years ago #

    Does anybody have a solution for my problem?

  3. Cal
    Member
    Posted 6 years ago #

    Well I don't think there's any easy way to do that. I would do a google search on htaccess or mod rewrite.....

    That's about the only way to do it since WordPress is in the /blog/ subdirectory.....

    Bottom line, you're going to have to add some stuff to your .htaccess file to get what you want.....

  4. Sudar
    Member
    Posted 6 years ago #

    Thanks Themesbycal for your reply. Even I get a feeling that it is not possible to have different permalinks for posts and pages. Anyway I will try to do it with .htaccess and mod_rewrite and will post my experience here.

    --
    Sudar

Topic Closed

This topic has been closed to new replies.

About this Topic