81 Billion

Websites in Singapore that are highly effective and visually appealing

Adding .html to permalinks and making it looks like a static pages

Posted on | February 3, 2013 | Comments Off on Adding .html to permalinks and making it looks like a static pages

  • For Post:   Set permalink to Custom Structure with   /%category%/%postname%.html
  • For Pages:   Use “.html on PAGES” plugin
  • For Category:   Use “Permalink Trailing Slash Fixer” plugin
    • To avoid trailing slash at pages, change the code in the plugin
      from:
      function ppm_fixe_trailingslash($url, $type)
      {
      if (‘single’ === $type)
      return $url;return trailingslashit($url);
      }To:
      function ppm_fixe_trailingslash($url, $type)
      {
      if (‘single’ === $type)
      return $url;
      if (‘page’ === $type)
      return $url;
      return trailingslashit($url);
      }

    4.  Change image folder in the “Miscellaneous Settings”.

Comments

    About

    This is an area on your website where you can add text. This will serve as an informative location on your website, where you can talk about your site.

    Subscribe to our feed

    Search

    Admin