litespeedtech / litespeedtech/lscache_wp

LS Cache prevents redirect from non-trailing slash to trailing slash post link

Open
#177 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
257
Forks
123
PR merge metrics
No merged PRs in 30d

Description

Hi.

On two fresh installs of Open Litespeed WordPress Compute Engine instances, LS Cache prevents the WordPress url's from auto-redirecting to the trailing slash version.

```
Example:

With LS Cache disabled => /chapter/chapter-1 goes to /chapter/chapter-1/
With LS Cache enabled => /chapter/chapter-1 shows a blank page
```

By changing the permalink structure to not have a trailing slash, the URL with the trailing slash won't go to the non-trailing slash URL automatically.

```
Example:

With LS Cache disabled => /chapter/chapter-1/ goes to /chapter/chapter-1
With LS Cache enabled => /chapter/chapter-1 shows a blank page
```

I wonder if there is a known solution to this issue?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the two permalink configurations on a fresh OpenLiteSpeed WordPress installation with LS Cache enabled and disabled, comparing the trailing-slash requests. Done means both non-trailing-slash and trailing-slash URLs redirect correctly under either permalink configuration without showing a blank page.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
performance, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.