Unfortunately, this hasn’t worked for me so far.
Has anyone successfully managed to use pretty URLs with Elements before?
Could someone give me a tip on what the correct .htaccess entry should look like?
I have spent several days trying to transform the current Elements CMS blog slug into a meaningful structure, specifically into /blog/?item=my-blog-post.
I’ve tried numerous .htaccess entries, as well as changing the index.php in the post folder to post.php, similar to how it’s done with Total CMS, and made the corresponding .htaccess entries.
Unfortunately, all these attempts have failed.
@ben
Ideally, I would like to set up my blogs so that the ‘post’ folder does not always appear between my blog and the blog slug. How can I do this?
You will then need to add the following “base” tag to the <head> area of your project’s template:
<base href="/">
<!-- OR if you're publishing to a subfolder: -->
<base href="/subfolder/">
This ensures that URL like /post/my-first-post is rewritten under the hood to /post/index.php?item=my-first-post.
Obviously “post” can be anything you want, you just need to ensure your update the htaccess code to match whatever you’ve called the folder in Elements.
We will have more detailed tutorials and documentation as the CMS matures, but I hope that helps for now
---
title: "3 Welpen suchen ein Zuhause"
date: "2025-09-14 23:59"
tags: [D-Wurf]
categories: []
author: Ulrich
image:
src: /cornrow_aushang_2025.jpg
alt: CORNROW 3 Welpen suchen ein Zuhause
imagelinktarget:
imagelinktitle:
---
Drei süße Curly Coated Retriever-Welpen suchen ein liebevolles Zuhause!
Die kleinen Rüden sind am 27. Juni 2025 geboren, kerngesund, verspielt und bestens sozialisiert. Curly Coated Retriever sind wesensfeste, arbeitsfreudige und aktive Familienhunde, die sowohl Bewegung als auch Nähe zu ihren Menschen lieben.
Die Welpen wachsen bei uns im Garten auf, lernen verschiedene Umwelteinflüsse kennen und freuen sich immer über Besuch. Wenn Sie Interesse an einem aktiven, treuen Begleiter fürs Leben haben, melden Sie sich gerne und vereinbaren einen unverbindlichen Kennenlerntermin.
the web.config should be in the Item Template: (new version)
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<!-- A) Redirect: index.php?item=slug → /slug -->
<rule name="Redirect item→slug (local)" stopProcessing="true">
<!-- In Ordner-web.config ist die URL relativ zum Ordner -->
<match url="^(|index\.php)$" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="true">
<!-- item=slug vorhanden -->
<add input="{QUERY_STRING}" pattern="(?:^|&)item=([^&]+)" />
<!-- nur GET/HEAD redirecten, um Form-POSTs nicht zu zerstören -->
<add input="{REQUEST_METHOD}" pattern="^(GET|HEAD)$" />
</conditions>
<action type="Redirect"
url="{C:1}"
redirectType="Permanent"
appendQueryString="false" />
</rule>
<!-- B) Rewrite: /slug → index.php?item=slug -->
<rule name="Rewrite slug→index (local)" stopProcessing="true">
<!-- nur ein Segment (kein Slash) -->
<match url="^([^/]+)/?$" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<!-- Existierendes File/Ordner NICHT anfassen -->
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="index.php?item={R:1}" appendQueryString="true" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
It looks like you’re running into the same issue. From what I can see, you’ve managed to get the slug routing working, but now the layout no longer works correctly for the post collection:
…and also not for the individual post layout:
For me, this means I’ll probably have to wait until there’s more information in the Elements CMS manual. And unless there’s a fix for this issue:
…running a blog just doesn’t make much sense for now.
I have already tried a few times to integrate CMS into my own website, but unfortunately I have failed every time.
This is a shame, because I have now completely moved away from RW classic and rebuilt my website from scratch using Elements. I think this has worked out quite well so far, but I still have to do without the blog posts, which are read quite frequently.
I have tried to transfer the structure of @Ben’s Appleseed News to my site, but it doesn’t seem to work (see screenshot).
At first, I believed I would be able to make my blog posts visible again in Elements. Unfortunately, I was mistaken, and I am slowly starting to feel like a programmer. It’s a profession that is certainly interesting and exciting, but if I had to learn that too, my day would have to have 48 hours.
I’ve spent so many hours following Ben’s explanations, translating them each time and trying to understand them at the same time. I can imagine that the CMS system you’ve come up with has its advantages, but unfortunately it doesn’t help me.
I need a blog system where I can easily enter my posts so that I can then get back to my actual work.
I understood that this was coming, but now I’m not so sure if that’s true. Perhaps you could say something about this and also about a timeline. Can’t you just create a simple input system that works similarly to Alloy?
It is possible to create a form that uses a webhook to send data to a PHP script on your website, which then generates an MD file.
Important: MD files created in this way are not stored within the project or in the backup. Therefore, they must be downloaded manually from the website and saved separately.
I completely understand your frustration, it’s never fun when things don’t work the way you hoped.
The CMS is still in its early stages, and there are definitely issues and limitations we’re actively working to improve. We’re releasing updates regularly with fixes and enhancements, so progress is being made week by week.
From what you’ve said, it sounds like you’re asking about an online editor for the CMS, something where you can log in via a browser and manage your content directly (add, edit, delete posts, etc.).
If that’s the case, I want to be upfront: we haven’t started development on the online editing interface yet, and I don’t want to give you a false sense of when it’ll be ready. It’s on our long-term roadmap, but it’s not something you should expect in the near future.
Thanks again for your patience, and if you have any questions or ideas in the meantime, we’re always happy to hear them
We’ve been very up-front from the beginning. The Elements CMS is in BETA, it is still a work-in-progress.
We’ve not even released all the components for it yet. Ideally, you shouldn’t be using it in a production environment, and if you do you need to remember it’s a beta. We also specifically highlighted the fact that the online component will be a separate paid-for add-on at some point in the future.
I’m actually wondering if we should pull the CMS from Elements (for now until we’re further along). Due to its complexity it seems to require a high level of support and hand-holding. The CMS was never supposed to be part of the core product.
Oh God, NO! I’ve already aligned all my projects with it.
Personally, I’ve found a good way to work with it. Even though it’s still limited, it works well enough for me. So PLEASE don’t roll back the CMS feature again.
@dan He is actually giving you a compliment for being realistic upfront A kind of german way to say thank you and looking forward to the coming improvements.