Sanjoy Roy

[MCM, MCP, SCJP] – Senior PHP Programmer

www redirect issues Fix


How to change domain.com.au to http://www.domain.com.au?

if ($_SERVER['HTTP_HOST'] != 'www.domain.com.au') header('Location: http://www.domain.com.au' . $_SERVER['REQUEST_URI']);

If we use the cart, the cookies will be stored differently if we don’t use it. So, it will be always storing under domain http://www.domain.com.au. Applied for the client SHE Lights.

Advertisements

Comments are closed.

%d bloggers like this: