Viewing 2 replies - 1 through 2 (of 2 total)
    1. You need to edit main configuration files are usually located in the /etc/apache2 directory. This will typically be the 000-default.conf file for the default site or a specific virtual host

    sudo nano /etc/apache2/sites-available/000-default.conf

    for subdirectory rewrites, you need to focus on the subdirectory path. Add the AllowOverride All directive to enable .htaccess file overrides in that specific directory like /var/www/html/subdirectory/

    AllowOverride All # Optional: Additional settings for the directory

    Ensure that the .htaccess file has proper permissions so Apache can read it:

    then restart apache server.

    Moderator Imagethreadi

    (@threadi)

    Your question has nothing to do with WordPress as far as I can tell. I would recommend that you take a look at the Apache manual. There is a whole section on this setting: https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride – if you have any further questions, it is best to contact a community that supports server-side configurations.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘AllowOverride’ is closed to new replies.