Jump to content

htaccess Apache 2.4 vs Apache 2.2


Recommended Posts

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

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

Archived

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

  • Recently Browsing   0 members

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