.htaccess not working apache

Alles, was den Apache betrifft, kann hier besprochen werden.

.htaccess not working apache

Postby satineeraj » 28. May 2021 13:27

I have a Linux Ubuntu Server and I have installed apache, php, and mysql.

I have added a .htaccess file in my document root / var / www / html.

I entered this code in it: ErrorDocument 404 /var/www/html/404.php and it is still not showing up.

I kept entered this command multiple times: sudo service httpd restart to restart the server but no changes displayed ...

i checked this post (https://monovm.com/blog/what-are-htaccess-files-and-their-uses/) on the Internet and learn about .htacess file but i think this is not solve my problems,

How can I fix this ... Did I do something wrong?

Thanks in advance!
satineeraj
 
Posts: 2
Joined: 03. March 2021 15:13
XAMPP version: 5.6
Operating System: Windows 10

Re: .htaccess not working apache

Postby Nobbie » 28. May 2021 19:40

satineeraj wrote:Did I do something wrong?


A lot.

First of all, this is a GERMAN board. Or do you think "Grundlagen und Wissenswertes" is English language?

At next, this board is for Xampp Installations, you do NOT use Xampp.


Last not least, there is an Apache option, which controls what options may be configured in .htaccess and what options may not be configured (that results in ignoring changes). This configuration option is called "AllowOverwrite". I have no clue, how your Apache is configured, especially how AllowOverwrite has been set. You have to find out.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 26 guests