How to enter a password with a slash character in settings.php

If you’re want to the following characters in your password for the settings.php file in Drupal, you need to escape them.

  • : (colon, or operator). Escape using ‘%3a’
  • + (addition, plus). Escape using ‘%2b’
  • ? (question mark). Escape using ‘%3f’
  • / (slash, forward slash). Escape using ‘%2f’
  • @ (at the rate). Escape using ‘%40′
  • ( (round bracket). Escape using ‘= %28′
  • ) (round bracket). Escape using ‘%29′
  • = (equal to). Escape using ‘%3d’
  • & (ampersand, and operator). Escape using ‘%26′

Have something to say? Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*