M
M
Milton8122018-11-06 16:50:33
Apache HTTP Server
Milton812, 2018-11-06 16:50:33

How to display another page without changing the url?

How to make the example.com/homepage page displayed at the address example.com without changing the url in the address bar?
Tried to do a 302 redirect RewriteRule ^$ example.com/homepage [L,R=302], but it changes the URL
Also tried to do RewriteRule ^$ example.ru/homepage [P], but it doesn't do anything at all

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Antony Tkachenko, 2018-11-06
@LemonFox

This should not be done by the web server, but by your application.
Apparently you have WP and you need to specify the main page you need in the settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question