S
S
Sergey2016-01-09 18:59:55
Apache HTTP Server
Sergey, 2016-01-09 18:59:55

How to redirect from the root to another page in apache?

If I do this:

Redirect "/foo.html" "/bar.html"

then when I open ip/foo.html I see ip/bar.html, i.e. everything is working.
If the config is different:
Redirect "/" "/bar.html"

Then when I open the site by ip I see in the browser:
ip/bar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar.htmlbar. htmlbar.html
How to fix a redirect so that bar.html opens when accessing by ip?
IP can be any at the same time on the server of the client who will install the software.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-01-10
@butteff

RedirectMatch ^/$/bar.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question