jacksparrow, зачем делать там сайты ТЕБЕ? Если за меньшие деньги можно сделать на платном хостинге, на некоторых из которых тоже есть конструкторы и почти на всех есть установка CMS одним кликом?
<script type="text/javascript">'use strict';jQuery(document).ready(function () {if (jQuery('#message-purchased').length > 0) {var data = jQuery('#message-purchased').data();var notify = woo_notification;notify.loop = data.loop;notify.init_delay = data.initial_delay;notify.total = data.notification_per_page;notify.display_time = data.display_time;notify.next_time = data.next_time;notify.init();}jQuery('#notify-close').on('click', function () {woo_notification.message_hide();});});var woo_notification = {init : function () {setTimeout(function () {woo_notification.message_show();}, this.init_delay * 10);if (this.loop) {this.intel = setInterval(function () {woo_notification.get_product();}, this.next_time * 10);}},message_show: function () {var count = this.count++;if (this.total <= count) {window.clearInterval(this.intel);return;}var message_id = jQuery('#message-purchased');if (message_id.hasClass('fade-out')) {jQuery(message_id).removeClass('fade-out');}jQuery(message_id).addClass('fade-in').show();this.audio();setTimeout(function () {woo_notification.message_hide();}, this.display_time * 1000);$("#okno2").hide();setTimeout('$("#okno1").hide();$("#okno2").show("slow");',5000);},message_hide: function () {var message_id = jQuery('#message-purchased');if (message_id.hasClass('fade-in')) {jQuery(message_id).removeClass('fade-in');}jQuery('#message-purchased').addClass('fade-out');},get_product : function () {jQuery.ajax({type : 'POST',data : 'action=woonotification_get_product',url : wnotification_ajax_url,success: function (html) {var content = jQuery(html).children();jQuery("#message-purchased").html(content);woo_notification.message_show();jQuery('#notify-close').on('click', function () {woo_notification.message_hide();});},error : function (html) {}})},close_notify: function () {jQuery('#notify-close').on('click', function () {woo_notification.message_hide();});},audio : function () {if (jQuery('#woocommerce-notification-audio').length > 0) {var audio = document.getElementById("woocommerce-notification-audio");audio.play();}}} </script><div id="message-purchased" class="customized" style="display: none;"data-loop="0" //циклdata-initial_delay="0" //начальная задержкаdata-notification_per_page="30" //уведомление на страницеdata-display_time="10" // время отображения><div id="okno1"><img width="470" height="557" src="http://static7.smi2.net/img/80x80/3161293.jpeg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="43" srcset="http://static7.smi2.net/img/80x80/3161293.jpeg 470w, http://static7.smi2.net/img/80x80/3161293.jpeg 370w" sizes="(max-width: 470px) 100vw, 470px" /><p>Someone in Washington, D.C., United States purchased a <a href="http://new2new.com/authentic/shop/ut-enim-ad-minim/?link=9aefd6fa5b">Evva</a><small>About 4 hours ago</small></p></div><div id="okno2"><img width="470" height="557" src="http://static7.smi2.net/img/80x80/3161293.jpeg" class="attachment-post-thumbnail size-post-thumbnail wp-post-image" alt="43" srcset="http://static7.smi2.net/img/80x80/3161293.jpeg 470w, http://static7.smi2.net/img/80x80/3161293.jpeg 370w" sizes="(max-width: 470px) 100vw, 470px" /><p>Someone in Washington, D.C., United States purchased a <a href="http://new2new.com/authentic/shop/ut-enim-ad-minim/?link=9aefd6fa5b">Evva</a><small>About 4 hours ago</small></p></div><span id="notify-close"></span></div>
$document = JFactory::getDocument(); $document->setMetaData("description", strip_tags($переменная_из_админки));
Только если эти поля в hikashop заполнены, то и код вставлять нужно не в index.php, а в шаблон компонента.
jacksparrow, а зачем тогда там сайты делать, если самый дешевый тариф на Юкозе, дороже не самых дешевых тарифов на нормальных хостингах?
А просматривается нормально? Я сразу закрываю страницу когда на юкоз попадаю, ждать пол минуты что-бы закрыть рекламу, как-то не прикалывает.
Провайдер тоже может денег попросит. Кто не заплатил, фиг тому а не посетителя.
Options +FollowSymLinksRewriteEngine onRewriteCond %{HTTP_HOST} !^site-z\.ru$ [NC]RewriteRule ^(.*)$ http://site-z.ru/$1 [R=301,L]
Options +FollowSymLinksRewriteEngine onRewriteCond %(HTTP_HOST} ^site-x.ru .* [OR]RewriteCond %(HTTP_HOST} ^site-y.ru .* [OR]RewriteCond %(HTTP_HOST} ^site-w.ru .* RewriteRule (.*) http://site-z.ru [L]
Но вообще в панели хостинга где домен прикрепляется можно выбрать алиас это или редирект.
Да наверное так-же как и для одного, просто в папку каждого домена положить .htaccess:
Options +FollowSymLinksRewriteEngine onRewriteRule (.*) http://site-z.ru/$1 [R=301,L]
[ATTACH]153491[/ATTACH]
0123456789