Enable rewrite module for apache2 and fix .htaccess not working

preview_player
Показать описание
How to enable rewrite for apache; and enable .htaccess rewrite rules.

FIX:
1) change "AllowOverride None" to "AllowOverride All".
2) Enable rewrite module for apache2
- sudo a2enmod rewrite
then restart apache2
- sudo service apache2 restart
Рекомендации по теме
Комментарии
Автор

Thank you so much, solved my drupal 9 problem.

daudr
Автор

I don't know if you can help me or not I know how to use mod rewrite in Apache what happened was I was testing a query link from a hacker and when he used it he got a 400 error when I did it I got a 403 error which is where it's supposed to go but what it did next was it locked me out of my for websites because this was in the Apache configuration for the whole entire machine everybody was locked out the whole world 403 error the way I got it to work again I had to REM out all the mod rewrite and conditions and then the server worked again. Now I can't use mod rewrite because when I enable it to server goes into a 403 error globally I looked all over the Internet it seems that I'm the only one in the world that this is happened to no one has an answer for it it appears that there's a file somewhere that's remembering something because I rebooted the Apache I put in my backup config and when I try to use the mod rewrite 403 error code globally.

It was working great until basically I tested it with some hackers link do you have any ideas?

RaptorRotorHead
join shbcf.ru