.htaccess - How to create symbolic link in PHP pointing to subdirectory -


i need create sub domains magento.

i have followed steps in:

http://www.crucialwebhost.com/kb/how-to-setup-multiple-magento-stores/#sub-domain-method

after 7th step have tried access url sub.sitename.com gives error message:

/var/www/sub.sitename.com/app/mage.php not found 

it has been creating shortcuts have check 1 using ftp connection.

please me, let me know next .

maybe did not create link right way?

ln -s [target directory or file] ./[shortcut] 

in example see:

ln -s ../public_html/app ./app ln -s ../public_html/errors ./errors ln -s ../public_html/includes ./includes ln -s ../public_html/js ./js ln -s ../public_html/lib ./lib ln -s ../public_html/media ./media ln -s ../public_html/skin ./skin ln -s ../public_html/var ./var 

try not use ../ :

ln -s /public_html/app ./app ln -s /public_html/errors ./errors ln -s /public_html/includes ./includes ln -s /public_html/js ./js ln -s /public_html/lib ./lib ln -s /public_html/media ./media ln -s /public_html/skin ./skin ln -s /public_html/var ./var 

hope helps.


Comments