Jump to content

htaccess Apache 2.4 vs Apache 2.2


Recommended Posts

Posted

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 ?

 


 

Posted
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

 

Posted

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.

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...