Pretty URL with Blog in subdirectory

@dan

@ben

I set up the Microblog project on my other site and implemented the Pretty Url’s: 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 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.

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

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

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 :blush:

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/

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. :slightly_smiling_face:

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