Автор Тема: На хостинге не работает htacess  (Прочитано 10848 раз)

hellen_89

  • Гость
На хостинге не работает htacess
« : Сентября 07, 2012, 10:07:28 pm »
вопрос решен.. спасибо

вроде не боян, но все же..
пробую сделать магазин на Lego 4.6 (на хостинг все залито правильно. базы данных созданы и т.п.)

http://massa24.com.ua/ 
странные вещи происходят. Если просто залить исходники на сайт, то возвращяет ошибку /Error.. а если удалить из исходников htaccess, то хотя бы инсталяцию можно пройти кое как..

админы хостинга говорят, что это косяки програмистов, но видимо таки я накосячила..

Помогите камрады пожалуйста..
Проблема вроде в .htacess но неуверена..


дистрибутив у меня старый и много раз провереный 4.6, причем на этот же хостинг вчера его ставила вполне нормально, но потом сменила кодировку на хостинге на UTF-8 и все накрылось..
Что характерно, если залить туда Lego 5.02 то все работает в норме..

ниже скрины настроек php на хостинге..может там проблема





« Последнее редактирование: Сентября 09, 2012, 02:48:33 pm от hellen_89 »

nictboom

  • Гость
Re: На хостинге не работает htacess
« Ответ #1 : Сентября 07, 2012, 11:23:54 pm »
Цитировать
Если просто залить исходники на сайт, то возвращяет ошибку /Error.. а если удалить из исходников htaccess, то хотя бы инсталяцию можно пройти кое как..
а сам .htaсcess из исходника покажите.

hellen_89

  • Гость
Re: На хостинге не работает htacess
« Ответ #2 : Сентября 08, 2012, 12:15:33 am »
а сам .htaсcess из исходника покажите.


#config
   DirectoryIndex index.php
   AddDefaultCharset windows-1251
   AddCharset windows-1251 .php

#rewrite url's
   RewriteEngine On
   RewriteBase     /
#www redirect
   RewriteCond %{HTTP_HOST} ^nowwwinstall$ [NC]
   RewriteRule ^(.*)$ http://wwwinstall/$1 [R=301,L]

#copress js and css
        RewriteRule core/js/(.*)\.js$ core/jscss.php [L]
        RewriteRule css/(.*).css$ core/jscss.php [L]


#payment
   RewriteRule payment/$ index.php?payment [L]

#about url's
   RewriteRule ^catalog/(.*)/about/$ index.php?about&category=$1/ [L]
   RewriteRule ^brand/(.*)/about/$ index.php?about&brands=$1/ [L]

#catalog url's
   RewriteRule ^catalog/(.*)$ index.php?catalog_hurl=$1 [L]
   RewriteRule ^product/(.*)$ index.php?product_hurl=$1 [L]
   RewriteRule ^news/(.*)$ index.php?news&news=$1 [L]
   RewriteRule ^pages/(.*)$ index.php?pages&pages=$1 [L]
   RewriteRule ^tags/(.*)$ index.php?tags_hurl=$1 [L]
   RewriteRule ^brand/(.*)/(.*) index.php?brand=$1/$2 [L]

#sort url's
   RewriteRule (.*)/(.*)/&sort=(.*)&order=(.*)$ index.php?$1_hurl=$2&sort=$3&order=$4 [L]

#offset url's
   #RewriteRule offset/(.*)/&sort=(.*)&order=(.*)$ index.php?searchstring=$1&sort=$2&order=$3 [L]
   RewriteRule (.*)/(.*)/&offset=(.*)$ index.php?$1_hurl=$2&offset=$3 [L]
   RewriteRule (.*)/(.*)/&show_all=yes$ index.php?$1_hurl=$2&show_all=yes [L]

#lang url's
   RewriteRule ru/$ index.php?new_language=0 [L]
   RewriteRule en/$ index.php?new_language=1 [L]

#information url's
   RewriteRule info/(.*)$ index.php?aux_pages=$1 [L]
   RewriteRule contact/&send_result=(.*)$ index.php?contact&send_result=$1 [L]
   RewriteRule contact/$ index.php?contact [L]
   RewriteRule service/$ index.php?aux_page=aux2 [L]
   RewriteRule pricelist/([0-9]*)/$ index.php?show_price=$1 [L]
   RewriteRule pricelist/$ index.php?show_price=yes [L]
   RewriteRule ^price.xls$ core/core_xls.php [L]
   RewriteRule feed.xml$ core/core_rss.php [L]
   RewriteRule about/$ index.php?aux_page=aux1 [L]
   RewriteRule grafik/$ index.php?aux_page=aux1 [L]
   RewriteRule adress/$ index.php?aux_page=aux1 [L]
   RewriteRule sitemap\.xml$ core/sitemap.php [L]
   RewriteRule sitemap/$ index.php?sitemap [L]

#administration url's
   RewriteRule admin$ admin.php [L]
   RewriteRule admin/$ admin.php [L]

#cart url's
   RewriteRule add2cart/(.*)$ index.php?shopping_cart&add2cart=$1 [L]
   RewriteRule cart/$ index.php?shopping_cart=yes [L]
   RewriteRule cart/&remove=(.*)$ index.php?shopping_cart=yes&remove=$1 [L]
   RewriteRule cart/&clear$ index.php?shopping_cart=yes&clear_cart=yes [L]
   RewriteRule cart/order/$ index.php?order_custinfo=yes [L]
   RewriteRule cart/order_placed/$ index.php?order_placement_result=1 [L]
   RewriteRule printorder/$ core/core_printorder.php [L]
   RewriteRule pd4/$ core/print_pd4.php [L]

#yandex url's
   RewriteRule yandex\.(xml|yml)$ core/core_yml.php [L]

#search_expanded url's
    RewriteRule search_expanded/ index.php?search_expanded=1 [L]

#errors
   RewriteRule 404/$ core/core_404.php [L]

   ErrorDocument 403 http://install/404/
   ErrorDocument 404 http://install/404/

hellen_89

  • Гость
Re: На хостинге не работает htacess
« Ответ #3 : Сентября 09, 2012, 09:48:12 am »
странно. заменила htacecc на тот, что в версии 5.02 и всеначало работать,
[spoiler]#config
   DirectoryIndex index.php
   AddDefaultCharset windows-1251
   AddCharset windows-1251 .php
        Options -Indexes

#rewrite url's
   RewriteEngine On
   RewriteBase     /
#www redirect
   RewriteCond %{HTTP_HOST} ^nowwwinstall$ [NC]
   RewriteRule ^(.*)$ http://wwwinstall/$1 [R=301,L]

#copress js and css
        RewriteRule core/js/(.*)\.js$ core/jscss.php [L]
        RewriteRule css/(.*).css$ core/jscss.php [L]


#payment
   RewriteRule payment/$ index.php?payment [L]

#about url's
   RewriteRule ^catalog/(.*)/about/$ index.php?about&category=$1/ [L]
   RewriteRule ^brand/(.*)/about/$ index.php?about&brands=$1/ [L]

#catalog url's
   RewriteRule ^catalog/(.*)$ index.php?catalog_hurl=$1 [L]
   RewriteRule ^product/(.*)$ index.php?product_hurl=$1 [L]
   RewriteRule ^news/(.*)$ index.php?news&news=$1 [L]
   RewriteRule ^pages/(.*)$ index.php?pages&pages=$1 [L]
   RewriteRule ^tags/(.*)$ index.php?tags_hurl=$1 [L]
   RewriteRule ^brand/(.*)/(.*) index.php?brand=$1/$2 [L]

#sort url's
   RewriteRule (.*)/(.*)/&sort=(.*)&order=(.*)$ index.php?$1_hurl=$2&sort=$3&order=$4 [L]

#offset url's
   #RewriteRule offset/(.*)/&sort=(.*)&order=(.*)$ index.php?searchstring=$1&sort=$2&order=$3 [L]
   RewriteRule (.*)/(.*)/&offset=(.*)$ index.php?$1_hurl=$2&offset=$3 [L]
   RewriteRule (.*)/(.*)/&show_all=yes$ index.php?$1_hurl=$2&show_all=yes [L]

#lang url's
   RewriteRule ru/$ index.php?new_language=0 [L]
   RewriteRule en/$ index.php?new_language=1 [L]

#information url's
   RewriteRule info/(.*)$ index.php?aux_pages=$1 [L]
   RewriteRule contact/&send_result=(.*)$ index.php?contact&send_result=$1 [L]
   RewriteRule contact/$ index.php?contact [L]
   RewriteRule service/$ index.php?aux_page=aux2 [L]
   RewriteRule pricelist/([0-9]*)/$ index.php?show_price=$1 [L]
   RewriteRule pricelist/$ index.php?show_price=yes [L]
   RewriteRule ^price.xls$ core/core_xls.php [L]
   RewriteRule feed.xml$ core/core_rss.php [L]
   RewriteRule ^about/$ index.php?aux_page=aux1 [L]
   RewriteRule grafik/$ index.php?aux_page=aux1 [L]
   RewriteRule adress/$ index.php?aux_page=aux1 [L]
   RewriteRule sitemap\.xml$ core/sitemap.php [L]
   RewriteRule sitemap/$ index.php?sitemap [L]

#administration url's
   RewriteRule admin$ admin.php [L]
   RewriteRule admin/$ admin.php [L]

#cart url's
   RewriteRule add2cart/(.*)$ index.php?shopping_cart&add2cart=$1 [L]
   RewriteRule cart/$ index.php?shopping_cart=yes [L]
   RewriteRule cart/&remove=(.*)$ index.php?shopping_cart=yes&remove=$1 [L]
   RewriteRule cart/&clear$ index.php?shopping_cart=yes&clear_cart=yes [L]
   RewriteRule cart/order/$ index.php?order_custinfo=yes [L]
   RewriteRule cart/order_placed/$ index.php?order_placement_result=1 [L]
   RewriteRule printorder/$ core/core_printorder.php [L]
   RewriteRule pd4/$ core/print_pd4.php [L]

#yandex url's
   RewriteRule yandex\.(xml|yml)$ core/core_yml.php [L]
        RewriteRule metamarket\.xml$ core/core_metamarket.php [L]
       

#search_expanded url's
    RewriteRule search_expanded/ index.php?search_expanded=1 [L]

#watermark
    #RewriteRule ^(products_pictures|products_thumb|userfiles)/(.*\.(gif|jpg|jpeg|png))  core/watermark.php?dir=$1&img_path=$2 [L] # All image
    #RewriteRule ^(products_pictures)/(.*\.(gif|jpg|jpeg|png))  core/watermark.php?dir=$1&img_path=$2 [L] # All products_pictures
    #RewriteRule ^(products_pictures)/(.*-B\.(gif|jpg|jpeg|png))  core/watermark.php?dir=$1&img_path=$2 [L] # only big products_pictures
    #RewriteRule ^(products_pictures)/(.*-H\.(gif|jpg|jpeg|png))  core/watermark.php?dir=$1&img_path=$2 [L] # only smal products_pictures 
    #RewriteRule ^(products_thumb)/(.*\.(gif|jpg|jpeg|png))  core/watermark.php?dir=$1&img_path=$2 [L] # All products_thumb 


#errors
   RewriteRule 404/$ core/core_404.php [L]

   ErrorDocument 403 http://install/404/
   ErrorDocument 404 http://install/404/

[/spoiler]

 только когда заказ оформляю, в  конце пишет "извините технические работы"..



что за непонятки..? разве это зависит от htacess?

zlayapulia

  • Гость
Re: На хостинге не работает htacess
« Ответ #4 : Октября 08, 2012, 11:23:35 pm »
решил похожую проблему только что
6.1 новая. перестали работать ссылки с чпу
с выключенными часть не работает

залил хта с версии 4.6 и заработало всё

Оффлайн Bukem

  • Пользователь
  • **
  • Сообщений: 52
    • Просмотр профиля
Re: На хостинге не работает htacess
« Ответ #5 : Октября 19, 2012, 01:57:55 pm »
после переноса с денвера на ISS тоже ссылки перестали работать, как исправить? HTTACCESS всяко уже перепробовал, куда копать хз, может PHP.ini править надо?

Оффлайн Bukem

  • Пользователь
  • **
  • Сообщений: 52
    • Просмотр профиля
Re: На хостинге не работает htacess
« Ответ #6 : Октября 20, 2012, 05:40:15 am »
дак это понятно ))) в этом и нужна помощь, может кто уже настраивал IIS + PHP + MySQL на работу с Lego Shop

Оффлайн Bukem

  • Пользователь
  • **
  • Сообщений: 52
    • Просмотр профиля
Re: На хостинге не работает htacess
« Ответ #7 : Октября 21, 2012, 11:35:58 am »
Я настраивал как раз наш хостинг на тойже связке

можешь рассказать  какие особенности в настройках, я сделал все настройки из мануала к 1С Битрикс

Оффлайн Bukem

  • Пользователь
  • **
  • Сообщений: 52
    • Просмотр профиля
Re: На хостинге не работает htacess
« Ответ #8 : Октября 22, 2012, 10:13:54 am »
спасибо, получилось

Оффлайн Bukem

  • Пользователь
  • **
  • Сообщений: 52
    • Просмотр профиля
Re: На хостинге не работает htacess
« Ответ #9 : Октября 24, 2012, 06:27:47 am »
чтоб не плодить кучу тем, решил продолжить здесь..
Проблема в том, что не работает кнопка оформления заказа:
 <a onclick="{literal}javascript: if (validate_custinfo(this)==true) {$('#custinfo_form').submit();}{/literal}" class="button"><span>{$smarty.const.STRING_PLACE_ORDER}</span></a>при нажатии переходит на страницу /cart/order_placed/ , но с сообщением "ведутся тех работы", притом в адресной строке все ок, и если поставить курсор в адресную строку броузера и нажать Enter страница таки открывается, рефреш страницы ничего не дает..
если ссылку оформления заказа сделать статичной, то все ок
<a href="/cart/order_placed/"class="button"><span>{$smarty.const.STRING_PLACE_ORDER}</span></a>P.S. Отразится ли на работе магазина замена кнопки по умолчанию на статичный линк? в чем все таки  может быть проблема?

изменил метод на get ссылка заработала нормально
<form action="./{if $smarty.const.CONF_CHPU}cart/order_placed/{else}index.php?order_placement_result=1{/if}" name="custinfo_form" id="custinfo_form" method="get">но соответственно на странице отображается не то..
« Последнее редактирование: Октября 24, 2012, 08:31:06 am от Bukem »

Оффлайн Bukem

  • Пользователь
  • **
  • Сообщений: 52
    • Просмотр профиля
Re: На хостинге не работает htacess
« Ответ #10 : Октября 24, 2012, 10:10:32 am »
pehser
Опять спасибо, не знал что у Lego Shop есть свой лог, там написано: ошибка майл сервера. Думаю после этого, у меня много вопросов снимется))
« Последнее редактирование: Октября 24, 2012, 10:19:59 am от Bukem »