We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39355
    • 26 Posts
    This handles itself in Revo quite easily, but not EVO and Im hoping someone can help me out.

    I have created a Resource called "data" and select under Internet Media Type Extension "text/javascript"

    The resource shows data.html when I want it to be data.js

    Again, in Revo, I do this, and it works but I need to use EVO in this case and wonder if this is possible?

    Thank you for your time.
      • 13226
      • 953 Posts
      I am not sure where the problem is, but this setting does work - I use it

      Have you used ".js" as the alias, instead of leaving the suffix blank ?

      If you have the alias pre-defined in the config as ".html" your file will automatically be called as such

      Make sure the alias is set as "yourfilename.js" and not "yourfilename"
        • 39355
        • 26 Posts
        Thank you for your time and reply. Hmm. I add .js after my alias (data making it data.js)
        And when I preview, it comes up data.js.html

          • 13226
          • 953 Posts
          If that is so, try manually (in the address bar) linking to "data.js.html" and then "data.js"

          If you can see both, add a 301 rewrite to your .htaccess file for "data.js.html" to "data.js"

          Example:

          RewriteRule data.js.html https://www.YOURDOMAIN.com/PATHTOFILE/data.js [R=301,L]