Replies: 1 comment 2 replies
-
Based on the examples I can see in your screenshot (the 3/4 that are shown in full), it looks like you might not even need YOURLS for this use case. For example, you could create a rule in Apache that just takes everything under That could even work if there is some real content in For anyone to troubleshoot your rewrite rules, though, you'll have to share the .htaccess contents. For completeness, I should note that the plugin you're using is marked as archived, meaning its author will no longer maintain it. Fortunately, it's simple enough that it shouldn't break any time soon. And because of that simplicity, I'm confident that the problem you observe is entirely unrelated to the plugin. It does nothing more than add |
Beta Was this translation helpful? Give feedback.
-
Greetings! I have what seems to me an odd situation. I am running YOURLS v1.9.3 with the plugin "Allow Forward Slashes in Short URLs" enabled . It's working mostly successfully. Any short URL that has forward slashes works fine, except for one scenario. When a short URL ends with a forward slash, YOURLS completely fails to resolve the URL at all. It's almost as if ending with a slash is passing it to Apache whereas a slash within the origin URL is handled by YOURLS.
Here are a couple examples:
URL will fail with a 403: https://1ed.tech/spec/clr/v1p0/schema/openapi/
URL succeeds in redirecting: https://1ed.tech/spec/clr/v1p0/schema/json
Notice the successful one does not end with a forward slash but does contain them. The failing one contains forward slashes, but also specifically ends with one. Here is a screenshot from the admin so you can see these two URLs and how they're set up.
My goal here, as you might imagine from the structure of my short URLs, is to fully emulate a path in YOURLS and forward to a long URL. The only thing on this domain is YOURLS so I will never need to care about the actual path of anything other than /admin.
I figured I'd start with the Plugins discussion area because it could be an artifact of this plugin and not an artifact of YOURLS itself. It could also not be YOURLS fault at all but some kind of behavior in Apache. I'd love to find a clever way to either fork the plugin and update or perhaps explore a workaround in .htaccess if it's Apache.
Beta Was this translation helpful? Give feedback.
All reactions