We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Port fix to application.php when hosting locally with a port (localhost:8888) | Forum

Lloyd Merithew
Lloyd Merithew Oct 26 '10
The original private function urlHostRedirect() doesn't allow urls with a port like http://localhost:8888/oxwall

Replace the existing function code with new code below:

private function urlHostRedirect()
{
$urlArray = parse_url(OW_URL_HOME);
// returns an array including the port if it exists in the url OW_URL_HOME

if (isset($urlArray['port']))
{
$my_Host = ($urlArray['host'].':'.$urlArray['port']); // rejoin the host and port to build the url part like localhost:8888
} else {
$my_Host = ($urlArray['host']); // url without port
}

if ( isset($_SERVER['HTTP_HOST']) && ( $_SERVER['HTTP_HOST'] !== $my_Host ) ) // check to see the _SERVER['HTTP_HOST'] not equal to OW_URL_HOME
{
$this->redirect(OW_URL_HOME . OW::getRequest()->getRequestUri()); //redirect to proper url
}
}
Den Team
Den Oct 28 '10
Hello!
Thank you for instructions! But it seems we have fixed this issue in Beta5. On what version did you test this fix?
Lloyd Merithew
Lloyd Merithew Oct 28 '10
Addenster,

I'm using ow_1.0b5 on Mac Server 10.6.4 with MAMP. http://www.mamp.info/en/index.html

Regards
The Forum post is edited by Lloyd Merithew Oct 28 '10
Ania Queen
Ania Queen Feb 3

For small business hosting just starting their online journey, finding a hosting service that combines reliability, scalability, and support is crucial. Services like HostGator and InMotion Hosting are often recommended for their balance of performance, price, and customer support, providing a solid foundation for websites of all sizes.


beyondherd
beyondherd Apr 8
I am also facing the same error while hosting mod apks on my web Mod APK Provider. Let me know if you got any solution for this. Thanks
HIGH Quality Backlinks
Hmmm, I am not therefore ‘ consider every little thing the following, but you do offer a important information with this make a difference. I’ll instruct me personally plus revisit at a later date. 英文補習社
HIGH Quality Backlinks
Limitless is a fun ride all the way through and it’s visually striking to boot. xnxx.com
Post Minder
Post Minder Jul 2
Custom kitchen cabinets allow you to choose from a wide range of materials, finishes, and hardware to create a look that reflects your personal style. custom kitchen cabinets