Last active
September 14, 2020 20:12
-
-
Save 5AMsan/1bbb244c1af818352578b22d85c69927 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( 'init', function() { | |
add_rewrite_rule( | |
'\?(.*)$', | |
'/tickets/?$matches[1]', | |
'top' ); | |
} ); | |
/** | |
* En bas du htaccess sinon : | |
* Rewriterule ^/?ticket_id=(.*) /tickets/?ticket_id=$1 [QSA,L,R=301] | |
* | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment