-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
n3u Niche Store has been discontinued, Feel free to study and learn from the code or fork the project! This is version 14.02.20
- Loading branch information
n3u.com
committed
Jun 16, 2014
0 parents
commit a61e62c
Showing
194 changed files
with
16,397 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
*.sln merge=union | ||
*.csproj merge=union | ||
*.vbproj merge=union | ||
*.fsproj merge=union | ||
*.dbproj merge=union | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
################################################### | ||
## Prevent Viewing of .htaccess from browser | ||
################################################### | ||
<Files ~ "^\.ht"> | ||
Order allow,deny | ||
Deny from all | ||
Satisfy All | ||
</Files> | ||
|
||
################################################### | ||
## Set Options & Charset | ||
################################################### | ||
Options +FollowSymLinks | ||
AddDefaultCharset UTF-8 | ||
|
||
################################################### | ||
## Force apache to use this as error document | ||
################################################### | ||
## ErrorDocument 404 /index.php?x=error | ||
|
||
################################################### | ||
## Rewrite Rules (Required for CleanURLs) | ||
################################################### | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
## Some host may require you uncomment the line below | ||
## RewriteBase / | ||
|
||
################################################### | ||
# Do not process images or CSS files further | ||
# No more rewriting occurs if rule is a success | ||
################################################### | ||
RewriteRule \.(css|jpe?g|gif|png)$ - [L] | ||
|
||
################################################### | ||
# Rewrite URLs | ||
################################################### | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_FILENAME} !-l | ||
RewriteRule ^(.*)_(.*)_(.*)_(.*)-(.*)-(.*)\.(htm|xml)$ index.php?x=$1&m=$2&b=$3&q=$4&sort=$5&p=$6 [L] | ||
RewriteRule ^admin_messages_(.*)\.htm$ index.php?x=admin&page=messages&url=$1 [L] | ||
RewriteRule ^admin_(.*)\.htm$ index.php?x=admin&page=$1 [L] | ||
RewriteRule ^page_(.*)\.htm$ index.php?x=page&page=$1 [L] | ||
RewriteRule ^(.*)_(.*)\.htm$ index.php?x=$1&item=$2 [L] | ||
RewriteRule ^download/(.*)$ index.php?x=download&url=$1 [L] | ||
RewriteRule ^go/(.*)\.htm$ index.php?x=go&url=$1 [L] | ||
RewriteRule ^(.*)\.htm$ index.php?x=$1 | ||
</IfModule> | ||
|
||
################################################### | ||
# Set CSS, JS & Image Expires Headers | ||
################################################### | ||
<IfModule mod_expires.c> | ||
ExpiresActive On | ||
ExpiresDefault "access 1 day" | ||
<FilesMatch "\.(gif|ico|jpg|jpeg|png)$"> | ||
ExpiresDefault "access plus 1 month" | ||
</FilesMatch> | ||
<FilesMatch "\.(css|js|xml)$"> | ||
ExpiresDefault "access plus 1 week" | ||
</FilesMatch> | ||
</IfModule> | ||
|
||
################################################### | ||
# Enable Compression | ||
################################################### | ||
# php_flag zlib.output_compression On | ||
# php_value zlib.output_compression_level 5 | ||
# BEGIN GZIP | ||
<ifmodule mod_deflate.c> | ||
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript | ||
</ifmodule> | ||
# END GZIP |
Oops, something went wrong.