View favicons.html
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
<link rel="shortcut icon" sizes="16x16 24x24 32x32 48x48 64x64" href="favicon.ico"> | |
<!-- Mobile (Android, iOS & others) --> | |
<link rel="apple-touch-icon" sizes="57x57" href="favicon-57.png"> | |
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="favicon-57.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="favicon-72.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="favicon-114.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="favicon-120.png"> | |
<link rel="apple-touch-icon" sizes="144x144" href="favicon-144.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="favicon-152.png"> |
View 301 редирект со страниц со слешем на без слеша (весь сайт)
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
RewriteCond %{REQUEST_URI} !\? | |
RewriteCond %{REQUEST_URI} !\& | |
RewriteCond %{REQUEST_URI} !\= | |
RewriteCond %{REQUEST_URI} !\. | |
RewriteCond %{REQUEST_URI} ![^\/]$ | |
RewriteRule ^(.*)\/$ /$1 [R=301,L] |
View 301 редирект со страниц без слеша на слеш
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
RewriteCond %{REQUEST_URI} !\? | |
RewriteCond %{REQUEST_URI} !\& | |
RewriteCond %{REQUEST_URI} !\= | |
RewriteCond %{REQUEST_URI} !\. | |
RewriteCond %{REQUEST_URI} !\/$ | |
RewriteRule ^(.*[^\/])$ /$1/ [R=301,L] |
View Redirect to new domain .htaccess
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
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} old-domain.ru [NC] | |
RewriteRule ^(.*)$ https://new-domain/$1 [R=301,L] |
View 301 redirect from WWW to without WW
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
# Insert this code to .htaccess file | |
RewriteEngine on | |
Options +FollowSymLinks | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www.domain\.ru$ [NC] | |
RewriteRule ^(.*)$ https://domain.ru/$1 [R=301,L] |
View Защита Email от спама на сайте
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
<script language="JavaScript"> | |
var login = 'netyspama'; | |
var server = 'mail.ru'; | |
var email = login+'@'+server; | |
var url = 'mailto:'+email; | |
document.write('<a href="'+url+'">'+email+'</a>'); | |
</script> |
View Удаление старых версий пакетов MODx
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
<?php | |
define('MODX_API_MODE', true); | |
require 'index.php'; | |
$modx->getService('error', 'error.modError'); | |
$modx->setLogLevel(modX::LOG_LEVEL_ERROR); | |
$modx->setLogTarget('ECHO'); | |
if (!XPDO_CLI_MODE) { | |
echo '<pre>'; | |
} | |
$c = $modx->newQuery('transport.modTransportPackage'); |
View Universal Email Template for AjaxForm MODx
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
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"> | |
<head> | |
<!--[if gte mso 9]> | |
<xml> | |
<o:OfficeDocumentSettings> | |
<o:AllowPNG/> | |
<o:PixelsPerInch>96</o:PixelsPerInch> | |
</o:OfficeDocumentSettings> | |
</xml> | |
<![endif]--> |
View MinifyX using in MODx Revo
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
<!--MinifyX call into HEAD and input all scripts and css in the necessary order, otherwise it may not work --> | |
[[MinifyX? | |
&minifyCss=`1` | |
&minifyJs=`1` | |
®isterJs=`default` | |
®isterCss=`default` | |
&jsSources=` | |
/assets/plugins/jquery/jquery-2.1.4.min.js, | |
/assets/js/scripts.js, | |
` |
NewerOlder