I Have magento installation with two websites on the same domain, each website has two stores, how can I get the two websites base URL or what should I write in each website base url to access it on the front end, can anyone help me
Why are both websites on the same domain? What URLs would you like each website to be accessed at?
Please read the documentation for managing mutliple websites: http://devdocs.magento.com/guides/v2.0/config-guide/multi-site/ms_over.html
You should modify your web server config to set the MAGE_RUN_CODE for the website that you want to run for the particular vhost.
One website for Egypt the currency will be Egyptian pound with two stores English and Arabic and the other for middle east countries the currency will be dollar also it will be with two stores English and Arabic
See these videos
How to create multiple websites in Magento 2
How to set up multilingual in Magento 2
These tutorials will help you to complete your requirements
I tried what he did in this video but it didn't work with me I don't know why
How can I modify your my server config to set the MAGE_RUN_CODE for the website
Hi,
You need to add
SetEnv MAGE_RUN_CODE "your_website_code"
in your virtual host configuration.