Adding .html to categories and pages (7 posts)

  1. kamcreation
    Posted 7 years ago #

    Hi i am using the following as Permalinks


    I want to add .html to pages so that instead of domain.com/about it becomes domain.com/about.html

    and i also want to rewrite the domain.com/category/health to domain.com/health.html

    But cant figure how to do it :(

    ( i am also using Category Templates i.e category-#.php in the site would it have any affect)

    Please help me how to do this as i have searched a lot but am not able to find any solution

  2. moshu
    Posted 7 years ago #

    You cannot.

  3. kamcreation
    Posted 7 years ago #

    Well i know that it cant be achieved by permalinks

    But cant modification of .htaccess to do the trick

    Or Even Making the pages manually and then integrating wordpress in it

  4. kamcreation
    Posted 7 years ago #

    ok i have dropped the pages thing now i only need .htm/php at the end of categories.

    cant it be done by .htaccess or modifying some wordpress files

    And if it is not possible can i manually make category pages like news.php reviews.php humor.php put them in the root folder and connect them to wordpress.Is it possible ?

  5. Rok
    Posted 7 years ago #

    1. For posts, you just need to add .html at the end of your permalink structure /%postname%.html and save the settings.

    2. For pages, there's a plugin that let you add .html, I'm not able to recall the link, but searching this forum will get you plugin link.

  6. menod
    Posted 7 years ago #

  7. blogsdna
    Posted 6 years ago #

    This seems to be possible with htaccess but it will require quite lots of work as well as chances are high that you may screw up with infinite redirection.

Topic Closed

This topic has been closed to new replies.

About this Topic