This file contains hidden or 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
| find . -type f \-exec chmod 644 {} \; | |
| find . -type d \-exec chmod 711 {} \; | |
| find media/ -type d \-exec chmod 755 {} \; | |
| find var/ -type d \-exec chmod 755 {} \; | |
| find media -type f \-exec chmod 664 {} \; | |
| find var -type f \-exec chmod 664 {} \; | |
| from: https://blog.nexcess.net/2010/12/06/securing-magento-file-directory-permissions/ |
This file contains hidden or 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
| Function MyConcat(ConcatArea As Range) As String | |
| For Each x In ConcatArea: xx = IIf(x = "", xx & "", xx & x & "|"): Next | |
| MyConcat = Left(xx, Len(xx) - 1) | |
| End Function | |
| // ALT +F11 |
This file contains hidden or 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
| # Canonical https/www | |
| <IfModule mod_rewrite.c> | |
| RewriteCond %{HTTPS} off [OR] | |
| RewriteCond %{HTTP_HOST} !^www\. [NC] | |
| RewriteCond %{HTTP_HOST} ^(.*)$ [NC] | |
| RewriteRule (.*) https://www.%1/$1 [R=301,L] | |
| </IfModule> |
OlderNewer