From dc1261d703ae1e1a14841b030888e3f87ff7c38f Mon Sep 17 00:00:00 2001 From: Christian Cleberg Date: Wed, 1 May 2024 21:45:52 -0500 Subject: prettier formatting and rewrap lines --- content/blog/2021-10-09-apache-redirect.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'content/blog/2021-10-09-apache-redirect.md') diff --git a/content/blog/2021-10-09-apache-redirect.md b/content/blog/2021-10-09-apache-redirect.md index 87ea38e..3a03aa9 100644 --- a/content/blog/2021-10-09-apache-redirect.md +++ b/content/blog/2021-10-09-apache-redirect.md @@ -24,10 +24,10 @@ To solve this problem, I really needed to solve two pieces: `/blog/some-post/`. 2. Ensure that no other `.html` files are redirected, such as `index.html`. -After *a lot* of tweaking and testing, I believe I have finally found the +After _a lot_ of tweaking and testing, I believe I have finally found the solution. The solution is shown below. -``` conf +```conf RewriteEngine On RewriteCond %{REQUEST_URI} !\index.html$ [NC] RewriteRule ^(.*).html$ https://example.com/$1 [R=301,L] @@ -41,5 +41,5 @@ following: 3. Find any `.html` files within the website directory and redirect it to exclude the file extension. 4. The final piece is adding the trailing slash (`/`) at the end of the URL - - you'll notice that I don't have an Apache rule for that since Apache - handles that automatically. + you'll notice that I don't have an Apache rule for that since Apache handles + that automatically. -- cgit v1.2.3-70-g09d2