Skip to content

Instantly share code, notes, and snippets.

@splacento-incomm
Created May 5, 2014 08:34
Show Gist options
  • Save splacento-incomm/c198fc3b97fac7d6f523 to your computer and use it in GitHub Desktop.
Save splacento-incomm/c198fc3b97fac7d6f523 to your computer and use it in GitHub Desktop.
Magento multisite setup
create directory (for example "veleprodaja"):
mkdir veleprodaja
chmod 755 veleprodaja
cp index.php veleprodaja/
cp .htaccess veleprodaja/
ln -s ../app ./app
ln -s ../errors ./errors
ln -s ../includes ./includes
ln -s ../js ./js
ln -s ../lib ./lib
ln -s ../media ./media
ln -s ../skin ./skin
ln -s ../var ./var
Now edit index.php:
before Mage::run($mageRunCode, $mageRunType);
ADD:
$mageRunCode = "veleprodaja";
$mageRunType="website";
Don't forget to setup website and store...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment