F
F
firemark_s2015-09-15 12:05:26
Apache HTTP Server
firemark_s, 2015-09-15 12:05:26

How to redirect in htaccess without changing the address bar?

What needs to be written in .htaccess so that a redirect occurs without changing the address in the browser line?
A person accesses the site
12345.ru/gorod.html
But the site
55555.ru/etot-gorod.html is loaded
in the address bar, the user still sees 12345.ru/gorod.html

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Defman21, 2015-09-15
@Defman21

RewriteEngine on
RewriteRule ^gorod\.html$ /etot-gorod.html [L,QSA]

S
ShamblerR, 2015-09-15
@ShamblerR

proxy

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question