.htacces file problem
-
Hi all,
I have a .htaccess file in my public_html folder which is the root of a WOrdpress installation.
Inside it I have this rule:
RedirectMatch /wp-content/uploads/(.*)$ /dl-file.php?file=$1The content of dl-file (which is also in the root) is this:
<?php require_once('wp-load.php'); if (is_user_logged_in()){ echo "You are logged in"; }else{ echo "not logged in"; }This rule is working well for files that do not exist: If I directly access the non-existing file https://simnigeria.org/wp-content/uploads/13.png, I see the message:
not logged in
.
If I however access a file that does exists, I see the file, while the result should be the same.why is that?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘.htacces file problem’ is closed to new replies.