Автор Тема: ErrorDocument 404  (Прочитано 6351 раз)

Оффлайн cool_roman

  • Пользователь
  • **
  • Сообщений: 78
    • Просмотр профиля
ErrorDocument 404
« : Сентября 29, 2013, 01:01:44 pm »
здравствуйте. залил сайт на хост. теперь вщ время ошибки не переходит сайт на кастомную страничку 404.
url страницы http://rmis.co.il/index.php?error_404
.htaccess



<ifmodule mod_deflate.c="">
<filesmatch .(js|css|.jpg|.gif|.png|.tiff|.ico)$="">
SetOutputFilter DEFLATE
</filesmatch>
</ifmodule>

#config
DirectoryIndex index.php
AddDefaultCharset utf-8
AddCharset utf-8 .php
        Options -Indexes

#rewrite url's
RewriteEngine On
RewriteBase     /
                RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
#www redirect
RewriteCond %{HTTP_HOST} ^www.rmis.co.il$ [NC]
RewriteRule ^(.*)$ http://rmis.co.il/$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/order/$ index.php?order_custinfo=yes [L]
RewriteRule cart/order_placed/$ index.php?order_placement_result=0 [L]
RewriteRule printorder/$ core/core_printorder.php [L]
RewriteRule pd4/$ core/print_pd4.php [L]
                RewriteRule cart/remove=(.*)$ index.php?shopping_cart=yes&remove=$1 [R=301,L]
RewriteRule cart/clear$ index.php?shopping_cart=yes&clear_cart=yes [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
   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
    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]
# RewriteRule 404/$ index.php?error_404 [L]
RewriteRule 404/$ index.php?error_404 [L]

ErrorDocument 403 /index.php?error_404
ErrorDocument 404 /index.php?error_404

RewriteEngine On
 RewriteBase /cache/assets/
 RewriteCond %{HTTP:Accept-Encoding} .*gzip.*
 RewriteRule (.*)\.css $1.css.gz
 RewriteRule (.*)\.js $1.js.gz
 AddEncoding x-gzip .gz
 


при ошибке в адрессной строке появляется http://rmis.co.il/404/ и не переходит на мою 404

Оффлайн cool_roman

  • Пользователь
  • **
  • Сообщений: 78
    • Просмотр профиля
Re: ErrorDocument 404
« Ответ #1 : Сентября 30, 2013, 08:49:15 am »
так чпу отключен еще в админке.