cancel
Showing results for 
Search instead for 
Did you mean: 

open custom page or category page via sub-domain

open custom page or category page via sub-domain

Hi,

I have magento 2 ,

Lets say my domain name is example.com

sub domain is: sub.example.com

cms or category page is example.com/fashion

How can when i open  via browser sub.example.com, display the page example.com/fashion without changing the url in browser.

i dont want to use redirects because they change url in browser, i want to use mod_rewright.

so to speak:

a visitor opens the page sub.example.com he see's the content of the page example.com/fashion but url in browser stays sub.example.com.

also if visitor navigates to another url inside the fashion category he stays in subdomain.

ex: sub.example.com/shirts display contents of page example.com/fashion/shirts