.htaccess - Other website under directory - htaccess -
i have wordpress website on example.com domain , other website on example2.com domain. possible make these 2 websites (running on different frameworks) accessible 1 domain example.com? let's there file.jpg on example2.com page. make possible open file example.com/some-directory/file.jpg. not limited 1 file, need full example2 website under example.com/some-direcory url. example2.com/login has equivalent example.com/some-direcory/login , etc. don't want 301 redirection here, because these 2 websites should share cookies have run under 1 domain.
i tried this, doesn't work, have 404 error:
rewritecond %{http_host} ^example.com\some-directory [nc] rewriterule ^some-directory/(.*) http://example2.com/$1 [r=301,nc,l]
Comments
Post a Comment