• Skip to primary navigation
  • Skip to main content

Genesis Community

Resources for Genesis WordPress Theme Users

  • Facebook
  • Twitter
  • Slack
  • Wiki
  • Login
You are here: Home / Wikis / PHP / Remove http or https from URLs

Remove http or https from URLs

$url = preg_replace( '(^https?://)', '', $url );
Source: https://stackoverflow.com/a/14369037/778809

Posted by: Sridhar Katakam Category: PHP

« Display the Path
Store values from foreach loop into array »

Copyright © 2026 · Genesis Sample on Genesis Framework · WordPress · Log in