Support » Plugin: HTML Import 2 » Import files WITHOUT .html extension

  • Resolved energia99


    Hi, I am trying to import files from a custom CMS.
    Your plugin seems great for importing content but I can’t figure out how to import files WITHOUT an extension. The thing is the old website used .htaccess rewrite so urls have no “php” or “html” extension. And if I add an extension to all of the files using one of the many file management utilities available online, your plugin will work but old URLs will be imported with “html” added!

    Do you think there is a fix for this? Thanks a lot for your support! 🙂


Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Stephanie Leary


    Maybe? Look in the html-importer.php file. Somewhere around line 278, you should see this:

    if (!empty($ext) && in_array($ext, $this->allowed)) {

    Change it to:

    if ( empty($ext) ) {

    … and see if it finds your files!

    Thanks, I will try this. Meanwhile I did import files using HTML extension, I will modify meta-fields and .htaccess rules manually to remove .html

    Great plug-in, a time saver.

    Plugin Author Stephanie Leary


    Awesome. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Import files WITHOUT .html extension’ is closed to new replies.