Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed apache 2.4 .htaccess #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 31 additions & 28 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,38 @@ AddDefaultCharset UTF-8
DirectoryIndex index.html index.htm index.php default.html

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

ReWriteCond %{REQUEST_URI} pda$
RewriteRule .* /popup/pda.html [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_URI} \.html$
ReWriteCond %{REQUEST_URI} !index\.html$
ReWriteCond %{REQUEST_URI} !fckeditor
ReWriteCond %{REQUEST_URI} !banner\.html$
ReWriteCond %{REQUEST_URI} !flashcoms
ReWriteCond %{REQUEST_URI} !google
RewriteRule .* /nf.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_URI} \.xml$
ReWriteCond %{REQUEST_URI} !fck
ReWriteCond %{REQUEST_URI} !flashcoms
RewriteRule .* /nf.php
RewriteEngine on
RewriteBase /

ReWriteCond %{REQUEST_URI} pda$
RewriteRule .* /popup/pda.html [R,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_URI} \.html$
ReWriteCond %{REQUEST_URI} !index\.html$
ReWriteCond %{REQUEST_URI} !fckeditor
ReWriteCond %{REQUEST_URI} !banner\.html$
ReWriteCond %{REQUEST_URI} !flashcoms
ReWriteCond %{REQUEST_URI} !google
RewriteRule .* /nf.php

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
ReWriteCond %{REQUEST_URI} \.xml$
ReWriteCond %{REQUEST_URI} !fck
ReWriteCond %{REQUEST_URI} !flashcoms
RewriteRule .* /nf.php

</IfModule>

<FILES config.php>
deny from all
</FILES>
<IfModule mod_access.c>

<FILES debmes.txt>
deny from all
</FILES>
<FILES config.php>
deny from all
</FILES>

<FILES debmes.txt>
deny from all
</FILES>
</IfModule>