Разработка доски объявлений под ключ Boxcode Ошибки Переадресация с несуществующих страниц Ответ в теме: Переадресация с несуществующих страниц

#2050
Аватарsanek2007
Участник

Вот содержимое файла!! Ткните пальцем или вставьте куда надо я скопирую и в свой файл вставлю!!!!!!

AddDefaultCharset UTF-8

# Небольшое пояснение. Если строчка начинается с символа решетки (#), то эта строчка закомментирована.
# Чтобы раскомментировать строчку, надо удалить символ решетки (#) вначале строки.

# Чтобы отключить опцию php magic_quotes_gpc (то есть нужно отключить автоматическое экранирование кавычек в php)
# раскомментируйте следующую строчку
#php_value magic_quotes_gpc off

# Чтобы отключить опцию php register_globals раскомментируйте следующую строчку
php_value register_globals off

#php_value upload_max_filesize 20M
#php_value post_max_size 20M
#php_value session.use_only_cookies on
#php_value memory_limit 128M

#php_value session.save_path «/путь к каталогу»
#php_value date.timezone «Europe/Moscow»

# Запуск mod_rewrite
RewriteEngine on
Options +FollowSymLinks
#Options +SymLinksIfOwnerMatch

#RewriteBase /

RewriteRule ^sitemapindex.xml$ sitemapindex.php [QSA,L]
RewriteRule ^sitemap_m_([a-zA-Z0-9]+).xml$ sitemap_modul.php?m=$1 [QSA,L]

RewriteRule ^punkt([0-9]+)/?$ index.php?m=grup&k=$1 [QSA,L]
RewriteRule ^punkt([0-9]+)/npage([0-9]+)/?$ index.php?m=grup&k=$1&numpage=$2 [QSA,L]
RewriteRule ^page([0-9]+).html$ index.php?m=stat&k=$1 [QSA,L]

#поиск по статьям
RewriteRule ^stpoisk/?$ index.php?m=stpoisk [QSA,L]

#правила для модуля облака тегов (меток)
RewriteRule ^metka/(.*)/$ index.php?m=setmetka&k=$1 [QSA,L]

RewriteRule ^registr/?$ index.php?m=registr [QSA,L]
RewriteRule ^registr/exitavt/?$ index.php?m=registr&exitavt=on [QSA,L]
RewriteRule ^registr/inforeg/?$ index.php?m=registr&inforeg=on [QSA,L]
RewriteRule ^registr/regrepair/?$ index.php?m=registr&regrepair=on [QSA,L]
RewriteRule ^registr/user([0-9]+).html$ index.php?m=registr&showuser=$1 [QSA,L]
RewriteRule ^registr/enter/?$ index.php?m=registr&enter=on [QSA,L]

RewriteRule ^add_money/?$ index.php?m=money&add_money=on [QSA,L]
RewriteRule ^payment_balance/?$ index.php?m=money&payment_balance=on [QSA,L]
RewriteRule ^success_payment\.html$ index.php?m=money&success_payment=on [QSA,L]
RewriteRule ^fail_payment\.html$ index.php?m=money_fpayment&fail_payment=on [QSA,L]

#отказ получения писем на Email указанный в комментариях
RewriteRule ^modcom/(.*)$ index.php?m=canmailcom&k=$1 [QSA,L]

#сообщения на сайте
RewriteRule ^my_message/?$ index.php?m=message&type=showin [QSA,L]
RewriteRule ^sd_message/?$ index.php?m=message&type=showsend [QSA,L]
RewriteRule ^send_message_([0-9]+).html$ index.php?m=message&send=on&num_user=$1 [QSA,L]
RewriteRule ^show_message_([0-9]+).html$ index.php?m=message&num_message=$1 [QSA,L]

RewriteRule ^guest/?$ index.php?m=guest [QSA,L]
RewriteRule ^guest/([0-9]+).html$ index.php?m=guest&guestpage=$1 [QSA,L]

RewriteRule ^news/?$ index.php?m=news [QSA,L]
RewriteRule ^news/([0-9]+).html$ index.php?m=news&newspage=$1 [QSA,L]

RewriteRule ^news/arhiv/?$ index.php?m=news&newsarhiv=on [QSA,L]
RewriteRule ^news/arhiv/([0-9]+).html$ index.php?m=news&newsarhiv=on&newspage=$1 [QSA,L]

#правила для модуля фотогалереи

RewriteRule ^photo/?$ index.php?m=photogallery [QSA,L]
RewriteRule ^photo/gallery([0-9]+)/?$ index.php?m=photogallery&catphoto=$1 [QSA,L]

RewriteRule ^subscribe/?$ index.php?m=subscribe [QSA,L]
RewriteRule ^subscribe/deletsub.html$ index.php?m=subscribe&deletsub=on [QSA,L]

#правила для модуля баннеров
RewriteRule ^redbanner/bn([0-9]+).html$ moduls/banners/redirectbn.php?ban=$1 [QSA,L]
RewriteRule ^redbanner/ / [R=301,L]

#модуль обратной связи
RewriteRule ^qonline/?$ index.php?m=qonline [QSA,L]

#доска объявлений

#RewriteRule ^doskaadv/?$ index.php?m=doska [QSA,L]

RewriteRule ^newadv/?$ index.php?m=doska&k=addadvert [QSA,L]

RewriteRule ^category([0-9]+)/?$ index.php?m=doska&k=podcategory&podcategory=$1 [QSA,L]
RewriteRule ^category([0-9]+)/num([0-9]+)\.html index.php?m=doska&k=podcategory&podcategory=$1&page_podcat=$2 [QSA,L]

RewriteRule ^advert([0-9]+)\.html$ index.php?m=doska&k=advert&advert=$1 [QSA,L]

RewriteRule ^(.*)-adv([0-9]+)\.html$ index.php?m=doska&k=advert&advert=$2&name_advert=$1 [QSA,L]

RewriteRule ^alladv/?$ index.php?m=doska&k=all_advert [QSA,L]
RewriteRule ^alladv/page([0-9]+)\.html$ index.php?m=doska&k=all_advert&page_alladvert=$1 [QSA,L]

RewriteRule ^alladv/(.*)/$ index.php?m=doska&k=podcategory&category_url=$1 [QSA,L]
RewriteRule ^alladv/(.*)/num([0-9]+)\.html$ index.php?m=doska&k=podcategory&category_url=$1&page_podcat=$2 [QSA,L]

RewriteRule ^myadverts/?$ index.php?m=doska&k=myadvert [QSA,L]
RewriteRule ^myadverts/page([0-9]+)\.html$ index.php?m=doska&k=myadvert&page_myadvert=$1 [QSA,L]

RewriteRule ^deladv([0-9]+)\.html$ index.php?m=doska&k=deladvert&del_num_advert=$1 [QSA,L]

#правила для модуля облака тегов (меток) доски объявлений

RewriteRule ^advmetka/(.*)/$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1 [QSA,L]
RewriteRule ^advmetka/(.*)/advmpage(.*)\.html$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1&adv_page_metka=$2 [QSA,L]

RewriteRule ^searchadv/?$ index.php?m=doska&k=searchadv [QSA,L]

RewriteRule ^edit/?$ index.php?m=doska&k=editadvert [QSA,L]
RewriteRule ^edit/numadv([0-9]+)\.html index.php?m=doska&k=editadvert&num_adv_edit=$1 [QSA,L]

RewriteRule ^advuser(.*)/$ index.php?m=doska&k=adverts_user&adv_numuser=$1 [QSA,L]
RewriteRule ^advuser(.*)/advuspage(.*)\.html$ index.php?m=doska&k=adverts_user&adv_numuser=$1&adv_page_user=$2 [QSA,L]

RewriteRule ^successadv.html$ index.php?m=doska&k=successpay [QSA,L]
RewriteRule ^failadv.html$ index.php?m=doska&k=failpay [QSA,L]

RewriteRule ^boardrss/?$ index.php?m=doska&k=rssadvert [QSA,L]
RewriteRule ^boardrss.xml/?$ moduls/doska/boardrss.php [QSA,L]

#объявления связанные с объектом каталога
RewriteRule ^advobject(.*)/$ index.php?m=doska&k=advert_object&num_object=$1 [QSA,L]
RewriteRule ^advobject(.*)/advobjpage(.*)\.html$ index.php?m=doska&k=advert_object&num_object=$1&adv_object_page=$2 [QSA,L]

RewriteRule ^mark_advert/?$ index.php?m=doska&k=mark_advert [QSA,L]
RewriteRule ^mark_advert/page([0-9]+)\.html$ index.php?m=doska&k=mark_advert&page=$1 [QSA,L]
RewriteRule ^mark_advert/delete([0-9]+)\.html$ index.php?m=doska&k=mark_advert&delete_mark_advert=$1 [QSA,L]

#новая строчка
RewriteRule ^extend_advert([0-9]+)\.html$ index.php?m=doska&k=extend_advert&id_advert=$1 [QSA,L]

# интернет магазин

RewriteRule ^shopcategory([0-9]+)/?$ index.php?m=intshop&k=inferiorcategory&intshop_podcategory=$1 [QSA,L]
RewriteRule ^shopcategory([0-9]+)/num([0-9]+)\.html index.php?m=intshop&k=inferiorcategory&intshop_podcategory=$1&intshop_page_podcat=$2 [QSA,L]

RewriteRule ^iproduct([0-9]+)\.html index.php?m=intshop&k=product&is_num_product=$1 [QSA,L]

RewriteRule ^basket/?$ index.php?m=intshop&k=basket [QSA,L]
RewriteRule ^basket/addprod([0-9]+)\.html$ index.php?m=intshop&k=basket&add_product_intshop=$1 [QSA,L]
RewriteRule ^basket/deletprod([0-9]+)\.html$ index.php?m=intshop&k=basket&delete_product_intshop=$1 [QSA,L]
RewriteRule ^payment([0-9]+)/?$ index.php?m=intshop&k=payment&num_element=$1 [QSA,L]
RewriteRule ^myorders/?$ index.php?m=intshop&k=myorders [QSA,L]
RewriteRule ^idlfile_([0-9]+)_([0-9]+)_([0-9]+)/?$ moduls/intshop/include/idownloadfile.php?num_order=$1&num_product=$2&num_file=$3 [QSA,L]

RewriteRule ^searchintshop/?$ index.php?m=intshop&k=search [QSA,L]

RewriteRule ^success_payment/?$ index.php?m=intshop&k=success_payment [QSA,L]
RewriteRule ^fail_payment/?$ index.php?m=intshop&k=fail_payment [QSA,L]

#модуль вопрос-ответ
RewriteRule ^faq/?$ index.php?m=faq [QSA,L]

#каталог компаний

#RewriteRule ^doskaadv/?$ index.php?m=doska [QSA,L]

RewriteRule ^createobj/?$ index.php?m=catalog&k=createobj [QSA,L]

RewriteRule ^categoryct([0-9]+)/?$ index.php?m=catalog&k=category&category=$1 [QSA,L]
RewriteRule ^categoryct([0-9]+)/num([0-9]+)\.html$ index.php?m=catalog&k=category&category=$1&page_cat=$2 [QSA,L]

RewriteRule ^objectcat([0-9]+)\.html$ index.php?m=catalog&k=object&object=$1 [QSA,L]

RewriteRule ^(.*)-objcat([0-9]+)\.html$ index.php?m=catalog&k=object&object=$2&name_object=$1 [QSA,L]

RewriteRule ^allobjectct/?$ index.php?m=catalog&k=all_object [QSA,L]
RewriteRule ^allobjectct/page([0-9]+)\.html$ index.php?m=catalog&k=all_object&page_allobject=$1 [QSA,L]

RewriteRule ^allobjectct/(.*)/$ index.php?m=catalog&k=category&category_url=$1 [QSA,L]
RewriteRule ^allobjectct/(.*)/num([0-9]+)\.html$ index.php?m=catalog&k=category&category_url=$1&page_cat=$2 [QSA,L]

RewriteRule ^myobjectcat/?$ index.php?m=catalog&k=myobject [QSA,L]
RewriteRule ^myobjectcat/page([0-9]+)\.html$ index.php?m=catalog&k=myobject&page_myobject=$1 [QSA,L]

RewriteRule ^delobjectcat([0-9]+)\.html$ index.php?m=catalog&k=delobject&del_num_object=$1 [QSA,L]

#правила для модуля облака тегов (меток) доски объявлений

#RewriteRule ^advmetka/(.*)/$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1 [QSA,L]
#RewriteRule ^advmetka/(.*)/advmpage(.*)\.html$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1&adv_page_metka=$2 [QSA,L]

RewriteRule ^searchobjct/?$ index.php?m=catalog&k=search [QSA,L]

#RewriteRule ^edit/?$ index.php?m=doska&k=editadvert [QSA,L]
#RewriteRule ^edit/numadv([0-9]+)\.html index.php?m=doska&k=editadvert&num_adv_edit=$1 [QSA,L]

RewriteRule ^objcatuser(.*)/$ index.php?m=catalog&k=object_user&object_numuser=$1 [QSA,L]
RewriteRule ^objcatuser(.*)/objcatuspage(.*)\.html$ index.php?m=catalog&k=object_user&object_numuser=$1&object_page_user=$2 [QSA,L]

#RewriteRule ^successadv.html$ index.php?m=doska&k=successpay [QSA,L]
#RewriteRule ^failadv.html$ index.php?m=doska&k=failpay [QSA,L]
#
#RewriteRule ^boardrss/?$ index.php?m=doska&k=rssadvert [QSA,L]
#RewriteRule ^boardrss.xml/?$ moduls/doska/boardrss.php [QSA,L]
#

#каталог статей

RewriteRule ^create_article/?$ index.php?m=article&k=create_item [QSA,L]

RewriteRule ^category_article([0-9]+)/?$ index.php?m=article&k=category&category=$1 [QSA,L]
RewriteRule ^category_article([0-9]+)/num([0-9]+)\.html index.php?m=article&k=category&category=$1&page=$2 [QSA,L]

RewriteRule ^article_item([0-9]+)\.html$ index.php?m=article&k=item&item=$1 [QSA,L]

RewriteRule ^(.*)-art([0-9]+)\.html$ index.php?m=article&k=item&item=$2&name_item=$1 [QSA,L]

RewriteRule ^allarticle/?$ index.php?m=article&k=all_item [QSA,L]
RewriteRule ^allarticle/page([0-9]+)\.html$ index.php?m=article&k=all_item&page=$1 [QSA,L]

RewriteRule ^allarticle/(.*)/$ index.php?m=article&k=category&category_url=$1 [QSA,L]
RewriteRule ^allarticle/(.*)/num([0-9]+)\.html$ index.php?m=article&k=category&category_url=$1&page=$2 [QSA,L]

RewriteRule ^myarticle/?$ index.php?m=article&k=myitem [QSA,L]
RewriteRule ^myarticle/page([0-9]+)\.html$ index.php?m=article&k=myitem&page=$1 [QSA,L]

RewriteRule ^delarticleitem([0-9]+)\.html$ index.php?m=article&k=del_item&del_num_item=$1 [QSA,L]

#правила для модуля облака тегов (меток) доски объявлений

#RewriteRule ^advmetka/(.*)/$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1 [QSA,L]
#RewriteRule ^advmetka/(.*)/advmpage(.*)\.html$ index.php?m=doska&k=adv_setmetka&adv_metvalue=$1&adv_page_metka=$2 [QSA,L]

RewriteRule ^searcharticle/?$ index.php?m=article&k=search [QSA,L]

#RewriteRule ^edit/?$ index.php?m=doska&k=editadvert [QSA,L]
#RewriteRule ^edit/numadv([0-9]+)\.html index.php?m=doska&k=editadvert&num_adv_edit=$1 [QSA,L]

RewriteRule ^articleuser(.*)/$ index.php?m=article&k=item_user&item_num_user=$1 [QSA,L]
RewriteRule ^articleuser(.*)/page(.*)\.html$ index.php?m=article&k=item_user&item_num_user=$1&item_page_user=$2 [QSA,L]