YOURLS: Stop redirecting from 404 to /s/
Version: 1.7.2 Plugins: 404-redirect | 1.4 Allow Hyphens in Short URLs | 1.0 Change Password | 1.0 Fix Long URL | 2.0 Sleeky Backend | 2.0
I also have Sleeky frontend installed. It’s located at /s/
/s/.htaccess:
# BEGIN YOURLS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /s/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /yourls-loader.php [L]
</IfModule>
# END YOURLS
/.htaccess:
# BEGIN YOURLS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /s/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /s/yourls-loader.php [L]
</IfModule>
# END YOURLS
I am really not competent to any of this, i think maybe the problem is in /.htaccess, but if i commment all the yourls lines, my short links stop working.
The issue is, if i go to website.com/example-nonexistent-page, it instantly forwards me to website.com/s. It doesn’t show me the 404 page. And i don’t want that.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 17 (8 by maintainers)
That seems to be working . Somehow I missed it while looking through the official documentation. Thanks to anyone who helped!
i am so incompetent