Viewing 3 replies - 1 through 3 (of 3 total)
  • Info will returned in this variable in PHP:

    $_SERVER['REQUEST_URI']

    and

    $_SERVER[‘QUERY_STRING’]`

    var_dump($_SERVER[‘REQUEST_URI’]);

    will output the contents of that information

    Thread Starter bryceadams

    (@bryceadams123)

    thank you for your response! but sorry, i was a little confused. If I was on example.com/post and wanted to have a link to othersite.example.com/post.. what would i need to put where ‘post’ is? thank you!

    $url = 'http://newsite.com/'.$_SERVER['REQUEST_URI'];

    a href=”$url”

    etc..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘get_bloginfo for just url path?’ is closed to new replies.