Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook Tuesday at 01:29 PM
NoSpy Posted July 10, 2019 Share Posted July 10, 2019 Hello, My community is in subdomain, I have trouble Apache 2.4 with apache 2.2 I have no problem <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map)(\?|$) /404error.php [L,NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> I have problem with this line. ". /index.php [L]" if I put RewriteRule ./index.php [L] forum does not work, but htaccess protect folder work if I put RewriteRule . /index.php [L] forum work, but not work htaccess protect folder work any idea how fix that ? Link to comment Share on other sites More sharing options...
bfarber Posted July 10, 2019 Share Posted July 10, 2019 10 hours ago, NoSpy said: but not work htaccess protect folder work Can you clarify what you mean? Sounds like you are trying to prevent directory listings, which you can do with this command: Options -Indexes Link to comment Share on other sites More sharing options...
NoSpy Posted July 12, 2019 Author Share Posted July 12, 2019 It's irrelevant. Options -Indexes I'm talking about the folder protection by htpasswd ". /index.php [L]" When I put this line with [L] it generates a conflict that disables the htpasswd in Apache 2.4 only. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.