There was a forum thread back in September with some issues struggling to get pretty URLs implemented. I have a similar issue, but now that we’re months further down the development line, and Elements has progressed so far since September, I wanted to start a new thread.
I’m working on my first Elements CMS blog for HX Aviation. I’ve used Elements Essentials and followed a few of the older YouTube tutorials to get everything up and running.
I have four posts ready to go live, and when I do a local preview, everything looks perfect!
My next step is to get it over on my development site. That’s when things start to go wrong. I’ve spent 3 hours trying to get this to work, and I’m hoping more experienced eyes will quickly spot my error.
I added the rewrite code to the .htaccess file, but the individual posts return 404 errors.
Here is the current version of my .htaccess (which is a the root of the subdomain for the dev site). I attempted to use the rewrites in the Elements documentation and the below is from ChatGPT.
With some more tinkering, I was able to get the pretty URLs that I was looking for, but this created other problems. The blog post page stripped out all of the spacing and the images on the page were all broken. My links (like the button to go back to the Articles page) would rewrite incorrectly and 404.
Some of this may be just the dev site and fixable on the production site, but I don’t really want to risk breaking something on the live site over how the URL looks.
I’m not a fan of Wordpress, but the one feature that I always appreciated was the ability to simply type in the post slug I wanted and WP did all the heavy lifting. I don’t know if that’s technically feasible for the Elements system, but it would be very nice.