A
A
avp2018-12-14 16:58:33
Apache HTTP Server
avp, 2018-12-14 16:58:33

How to make an alias in .htaccess to another site?

How to make an alias in .htaccess to another site. So that when the address in the browser is domain.com/test/index2.php , the page domain2.com/index2.php is displayed

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-12-14
@dodo512

mod_proxy, mod_rewrite.

RewriteRule ^test/index2.php$   http://domain2.com/index2.php [P]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question