Jump to content

How to get localhost /port URL


Gazley
 Share

Recommended Posts

Hi,

Is there a $config->url type of option that will return the URL below when I am running on localhost (ie: with the specified port, too) ?

http://localhost:8888/

I want to do a redirect when on the live server or localhost.

Thanks!

Link to comment
Share on other sites

@MuchDev

There is no $config->httpUrl but I can certainly do $pages->get('/')->httpUrl and that gives me what I need. Thanks for reminding me httpUrl. I forgot all about that because I was looking at the $config options only! :)

@adrian

It certainly does give me the port. Thanks for that :)

  • Like 1
Link to comment
Share on other sites

On 7/28/2016 at 1:24 AM, Gazley said:

@MuchDev

There is no $config->httpUrl but I can certainly do $pages->get('/')->httpUrl and that gives me what I need. Thanks for reminding me httpUrl. I forgot all about that because I was looking at the $config options only! :)

 

Oh yeah derp derp :) good deal you got settled 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...