How to allow a variable with “/” in wordpress url

How to allow a variable with “/” in wordpress url