I
I
Ilya bow2016-03-31 21:19:57
htaccess
Ilya bow, 2016-03-31 21:19:57

Created .htaccess but for some reason it didn't work. maybe it needs to be turned on somewhere or something?

In general, there is Apache 2 on raspberries.
In general, there is a site, it works fine.
I want to redirect from 404 to home page. does not work. just music fund opens.
I wrote to redirect from test.html to ya.ru. does not work.
So I thought maybe .htaccess where you need to enable it? Or some other reason?
So I thought maybe smart people will tell you where to look to understand why it does not work?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hscode, 2016-03-31
@hscode

There is Apache for Windows, and you need to enable the mod_rewrite module in it. Look for something on this.

V
Viktor Taran, 2016-04-01
@shambler81

Yes, you need to enable RewriteEngine On
if it is, then the rewrite mode
from the console does not work for you.
If it is disabled, then go to the hosting control panel and enable mod_rewrite
Also, if you have nginx without Apache, then .htaccess will not work in it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question