We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27330
    • 884 Posts
    In 0.9.6* we used [~18~] for links, in revo I see I should use [[~18]] instead.

    Problem is that now I have .html added to my alias even though I have the alias suffix empty in site config.

    I want my user to go to
    www.domain.com/contact
    VS
    www.domain.com/contact.html
    


    but revo just adds the html anyway.
    my settings are:

    prefix for furl: (empty)
    suffix for furl: (empty)
    Use FURL: Yes
    use friendly aliases: Yes
    container suffix: /

    my htaccess commentated parts:
    RewriteEngine On
    RewriteBase /alpha
    # The Friendly URLs part
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
    
    


    Anyone see what am I doing wrong?
      • 22303 MODX Staff
      • 10,725 Posts
      In Revo, prefix and suffix are no longer used; instead, each content type specifies an extension. Change this from .html to an empty string under Tools --> Content Types for the HTML content type, clear the site cache, and you should get what you want.

      Also note, containers with a text/html mime-type will get the container_suffix rather than the content type extension, which by default is set to /.