You'll need to enable rewrite in Apache in order for rewrite rules to work. 
Also, make sure that "AllowOverride All" is enabled in the <Directory> 
subdirective under <VirtualHost> for the domain you wish to enable this on. 
Otherwise, the .htaccess file will be ignored by the virtual host.

Type the command "sudo a2enmod rewrite.load" and then restart apache. For 
systemd users, type "sudo systemctl restart apache2". If you forget sudo, it 
will ask for your password anyway.

Eric Shields 🚏 MassTransitHonchkrow

Ask me about the Krowverse Suite of Services.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Monday, May 3rd, 2021 at 8:59 PM, Di Gregorio, Lisa 
<ldigrego...@gc.cuny.edu> wrote:

> Hello,
>
> I have to keep the below block at the bottom of my .htaccess file or the 
> directive I have to hide the debug file won’t work. So far, I have tried 
> moving this block to the top of the file and allowing for one and only one of
>
> RewriteEngine On in the file and one and only one of RewriteBase / This 
> doesn’t make a difference. The debug file still won’t be hidden when 
> following this format. Does anyone have any other idea as to why this block 
> must be at the bottom of the .htaccess file, which also means all other code 
> needs to be placed above this block. Thank you!
>
> # BEGIN WordPress
>
> #NEEDS TO BE AT END OF FILE OR HIDE DEBUG FILE CODE DOESN'T WORK
>
> RewriteEngine On
>
> RewriteBase /
>
> RewriteRule ^index\.php$ - [L]
>
> # uploaded files
>
> RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
>
> RewriteCond %{REQUEST_FILENAME} -f [OR]
>
> RewriteCond %{REQUEST_FILENAME} -d
>
> RewriteRule ^ - [L]
>
> RewriteRule . index.php [L]
>
> # END WordPress

Attachment: publickey - masstransitkrow@protonmail.com - 0xC17FD0A2.asc
Description: application/pgp-keys

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to