-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incompatibility with "Allow Hyphens in Short URLs" #10
Comments
Modify the .htaccess in the instructions to have "[-0-9A-Za-z]+" instead of "[0-9A-Za-z]+" |
Thanks, where specifically do I make this change, there is no similar data in .htaccess (in the Yourls root directory)? |
In the RewriteRules above, change the prefix to ^([-0-9A-Za-z]+), instead of ^([0-9A-Za-z]+) |
I made an edit to the comment above, the hyphen should go inside the square brackets. |
It is also sufficient to replace the three RewriteRules with just one:
|
I have tried all recommendations and various options, and still a hyphen in the shortened URL does not work. There must be something else in my configuration stopping it? |
It works when I changed the prefix to ^ ([- 0-9A-Za-z] +), Thank You jslching |
The plugin works very well but it appears incompatible with the "Allow Hyphens in Short URLs" plugin. With both plugins activated, a hyphened URL returns a page not found error; while non-hyphened URLs still work fine.
Is it possible to modify and work with hyphened URLs?
The text was updated successfully, but these errors were encountered: