We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 48653
    • 1 Posts
    Hello,

    I was recently introduced to a newer modx revolution 2.2 installation after being a long time user of evolution. One thing I noticed with this revolution installation was that friendly urls have no .html extension (which is good and I want to keep). But is there a way to also have .html suffix urls point to the same resource? We have this in the evolution instance setup just not in the revolution setup.

    So for instance if we have a resource with the alias "introduction" I would like anyone who specifies http://www.example.com/introduction or http://www.example.com/introduction.html to both land on the same page. Right now the first one goes to the page, the second ends up being 404. Maybe have the .html version redirect to the one without the suffix?

    Thanks for any help you can provide!
    • The easiest and most efficient way would be to redirect all .html requests without the extension at the web server before MODX rewriting is done. Otherwise, a plugin could do the same thing OnHandleRequest within MODX.