1
0
mirror of https://github.com/Yubico/yubikey-val.git synced 2025-02-17 21:54:18 +01:00

Fix RewriteRule

This is the RewriteRule that worked for me with Apache 2.46 on RHEL 7.
This commit is contained in:
nphull 2019-09-12 13:36:35 -04:00 committed by GitHub
parent 18ced7b6e7
commit 9619a567b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,7 +230,7 @@ Apache, using a .htaccess file:
----
user@val:~$ sudo sh -c 'cat > /var/www/wsapi/2.0/.htaccess'
RewriteEngine on
RewriteRule ^([^/\.\?]+)(\?.*)?$ $1.php$2 [L]
RewriteRule ^(.*/)?([^/.?]+)(\?.*)?$ $1$2.php$3 [L]
<IfModule mod_php5.c>
php_value include_path ".:/etc/yubico/val:/usr/share/yubikey-val"
</IfModule>