# Pretty URL with Blog in subdirectory

**URL:** <https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410>\
**Category:** Elements\
**Created:** [May 29, 2026, 3:33pm UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410 "2026-05-29T15:33:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ercross](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ercross](https://forums.realmacsoftware.com/u/ercross)\
**Post date:** [May 29, 2026, 3:33pm UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/1 "2026-05-29T15:33:27Z")

</div>

@dan

@ben

I set up the Microblog project on my other site and implemented the Pretty Url’s: [https://mywebsuite.com](https://mywebsuite.com) It is working there with the .htaccess in the root directory.

But no matter what combination I try on my [https://followingpaul.org](https://followingpaul.org) I can’t seem to get it to work.

My blog is https/followingpaul.org/pastor-s-desk/ so I put the same .htaccess file in that directory based on the instructions. I also tried it in the https/followingpaul.org dictory. The single post file is in a subdirectory under that named post. I set the head start on the post page to `<base href=”/pastor-s-desk/”>` and then on the blog page set the collection and search components to use Pretty Url.

When I try to view a post I get:

# Not Found

The requested URL was not found on this server.

Below is my project file:

elementsapp://downloadDocument/VRW026pR9IpG

I asked @differentdan to look at it yesterday, but he was traveling and I haven’t heard back yet.

---

<div class="post-metadata">

**Author:** ![differentdan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/differentdan/32/33530_2.png) [@differentdan](https://forums.realmacsoftware.com/u/differentdan)\
**Post date:** [May 29, 2026, 3:39pm UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/2 "2026-05-29T15:39:35Z")

</div>

I’m here @ercross, give me a bit of time. 🙂

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [May 29, 2026, 6:10pm UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/3 "2026-05-29T18:10:38Z")

</div>

Hi @ercross

There’s an error in your htaccess file that’s causing the 404 Not Found error.

As you’re hosting with us, I was able to apply a fix to the `.htaccess` file directly and I’m happy to say that your pretty urls are now working as expected, e.g: [Following Paul with WTBC - Shall Be Saved vs. Are Saved: Two Programs, Two Tenses, One Divided Word](https://followingpaul.org/pastor-s-desk/post/shall-be-saved-vs-are-saved)

If you now turn on Pretty URLs and republish your site, your links should work as expected. Let me know if you need more help with this 😊

---

<div class="post-metadata">

**Author:** ![ercross](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ercross](https://forums.realmacsoftware.com/u/ercross)\
**Post date:** [May 29, 2026, 6:42pm UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/4 "2026-05-29T18:42:06Z")

</div>

Thanks Ben, that did the trick. Odd though because I copy and pasted the code directly from the CMS Pretty URL Manual page.

Also, I copied this new .htaccess file to my other site and it broke that one, so I put it back to the former one which works.

Does it have to do with the line you added? That’s not in the code you have in the manual.

RewriteBase /pastor-s-desk/

---

<div class="post-metadata">

**Author:** ![differentdan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/differentdan/32/33530_2.png) [@differentdan](https://forums.realmacsoftware.com/u/differentdan)\
**Post date:** [May 29, 2026, 6:49pm UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/5 "2026-05-29T18:49:53Z")

</div>

Hi @ercross

We’re going to need to update the manual for differences in `.htaccess` rulesets when the site lives in the root folder vs. when it lives in a subfolder.

We are working on getting a standardized ruleset in place so we can add all that information to the docs. 🙂

---

<div class="post-metadata">

**Author:** ![ercross](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@ercross](https://forums.realmacsoftware.com/u/ercross)\
**Post date:** [May 29, 2026, 6:52pm UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/6 "2026-05-29T18:52:37Z")

</div>

@differentdan @ben Thanks for all your help. You guys continue to outshine the competition when it comes to customer service.

---

<div class="post-metadata">

**Author:** ![ttang](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ttang/32/19285_2.png) [@ttang](https://forums.realmacsoftware.com/u/ttang)\
**Post date:** [June 3, 2026, 11:19am UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/7 "2026-06-03T11:19:48Z")

</div>

Hi @differentdan

Have you updated the manual for .htaccess for root folder vs subfolder?

Thanks.

---

<div class="post-metadata">

**Author:** ![differentdan](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/differentdan/32/33530_2.png) [@differentdan](https://forums.realmacsoftware.com/u/differentdan)\
**Post date:** [June 3, 2026, 11:40am UTC](https://forums.realmacsoftware.com/t/pretty-url-with-blog-in-subdirectory/56410/8 "2026-06-03T11:40:24Z")

</div>

Not yet, but are you having troubles with getting pretty URLs to work?
