Помогите пожалуйста с .htaccess!очень надо.

  • Автор темы Doonkan
  • Дата начала
D

Doonkan

Гость
#1
кто рубит в php помогите плиз!;)

Проблема состоит в том что:я залил php скрипт на хост но этот хостинг не запускает сайт из за того что в фаиле .htaccess присутствует options деректива.т.е. хост не поддерживает эту дерективу и выдает сообщение (Так же проверьте, что бы в Вашем файле .htaccess НЕ пресутствовали директивы Options, ErrorDocument
Директивы, которые Вы можете переназначать:
AuthConfig Indexes Limit FileInfo)

помогите переделать фаил .htaccess так что бы он работал и сервак не выделывался


Вот содержимое фаила .htaccess ptions +FollowSymLinks

<IfModule mod_rewrite.c>

RewriteEngine on


## contact us
## tell a friend
## offline
## login/logout
## register
RewriteRule ^(contactus|tellfriend|offline|login|logout|register)/index.html$ index.php?m=$1 [L]


## member pages
RewriteRule ^(home|profile|messages|pictures|settings|visitors)/index.html$ index.php?m=$1 [L]


## picture rating
RewriteRule ^rate/index([0-9]?).html$ index.php?m=rate&adult=$1 [L]


## account
RewriteRule ^account/index.html$ index.php?m=account [L]
RewriteRule ^activate/([0-9]+)/([0-9A-Za-z]{32})/index.html$ index.php?m=activate&id=$1&hash=$2&a=1 [L]
RewriteRule ^activate/([0-9]+)/([0-9A-Za-z]{32})/index2.html$ index.php?m=activate&id=$1&hash=$2&a=2 [L]
RewriteRule ^account/cancel/index.html$ index.php?m=account&p=cancel [L]


## chat
RewriteRule ^webchat/index([0-9]+).html$ index.php?m=chat&id=$1 [L]


## affiliates
RewriteRule ^aff/([0-9]+)/?$ index.php?affid=$1 [L]


## favorites
## blocked
## visitors
RewriteRule ^(blocked|favorites|visitors)/index.html$ index.php?m=$1&page=1 [L]
RewriteRule ^(blocked|favorites|visitors)/index([0-9]+).html$ index.php?m=$1&page=$2 [L]
RewriteRule ^(blocked|favorites)/add/index([0-9]+).html$ index.php?m=$1&p=add&id=$2 [L]
RewriteRule ^(blocked|favorites)/delete/([0-9]+)/index([0-9]+).html$ index.php?m=$1&p=delete&id=$3&page=$2 [L]


## member videos
## member audio
## member pictures
RewriteRule ^(audio|pictures|videos)/index.html$ index.php?m=$1 [L]
RewriteRule ^(audio|pictures|videos)/index([0-9]+).html$ index.php?m=$1&page=$2 [L]
RewriteRule ^(audio|pictures|videos)/add/index.html$ index.php?m=$1&p=add [L]
RewriteRule ^(audio|pictures|videos)/edit/index([0-9]+).html$ index.php?m=$1&p=edit&id=$2 [L]
RewriteRule ^(audio|pictures|videos)/delete/([0-9]+)/index([0-9]+).html$ index.php?m=$1&p=delete&id=$3&page=$2 [L]
RewriteRule ^(pictures)/primary/([0-9]+)/index([0-9]+).html$ index.php?m=$1&p=primary&id=$3&page=$2 [L]


## lost password
RewriteRule ^lostpassword/index.html$ index.php?m=lostpassword [L]
RewriteRule ^lostpassword/([0-9]+)/([0-9A-Za-z]{32})/index.html$ index.php?m=lostpassword&id=$1&hash=$2 [L]


## member profile
RewriteRule ^member/([0-9]+)/index.html$ index.php?m=member&p=profile&id=$1 [L]


## member pictures
RewriteRule ^member/([0-9]+)/pictures/page([0-9]+)/index.html$ index.php?m=member&p=pictures&id=$1&offset=$2 [L]
RewriteRule ^member/([0-9]+)/pictures/page([0-9]+)/index([0-9]+).html$ index.php?m=member&p=pictures&id=$1&sid=$3&offset=$2 [L]


## member blogs
RewriteRule ^member/([0-9]+)/blog/page([0-9]+)/index.html$ index.php?m=member&p=blog&id=$1&offset=$2 [L]
RewriteRule ^member/([0-9]+)/blog/page([0-9]+)/index([0-9]+).html$ index.php?m=member&p=blogentry&id=$1&offset=$2&sid=$3 [L]


## member videos
RewriteRule ^member/([0-9]+)/videos/page([0-9]+)/index.html$ index.php?m=member&p=videos&id=$1&offset=$2 [L]
RewriteRule ^member/([0-9]+)/videos/page([0-9]+)/index([0-9]+).html$ index.php?m=member&p=videos&id=$1&sid=$3&offset=$2 [L]


## member guestbooks
RewriteRule ^member/([0-9]+)/guestbook/page([0-9]+)/index.html$ index.php?m=member&p=guestbook&id=$1&offset=$2 [L]
RewriteRule ^member/([0-9]+)/guestbook/page([0-9]+)/index([0-9]+).html$ index.php?m=member&p=guestbook&id=$1&sid=$3&offset=$2 [L]


## member audio
RewriteRule ^member/([0-9]+)/audio/page([0-9]+)/index.html$ index.php?m=member&p=audio&id=$1&offset=$2 [L]
RewriteRule ^member/([0-9]+)/audio/page([0-9]+)/index([0-9]+).html$ index.php?m=member&p=audio&id=$1&sid=$3&offset=$2 [L]
RewriteRule ^member/([0-9]+)/audioxml/page([0-9]+)/index.html$ index.php?m=member&p=audioxml&id=$1&offset=$2 [L]


## member messages
RewriteRule ^messages/compose/index([0-9]+).html$ index.php?m=messages&p=compose&id=$1 [L]
RewriteRule ^messages/inbox/index.html$ index.php?m=messages&p=inbox [L]
RewriteRule ^messages/sent/index.html$ index.php?m=messages&p=sent [L]
RewriteRule ^messages/inbox/index([0-9]+).html$ index.php?m=messages&p=inbox&page=$1 [L]
RewriteRule ^messages/sent/index([0-9]+).html$ index.php?m=messages&p=sent&page=$1 [L]
RewriteRule ^messages/inbox/read/index([0-9]+).html$ index.php?m=messages&p=iview&id=$1 [L]
RewriteRule ^messages/sent/read/index([0-9]+).html$ index.php?m=messages&p=sview&id=$1 [L]
RewriteRule ^messages/inbox/delete/([0-9]+)/index.html$ index.php?m=messages&p=idelete&page=$1 [L]
RewriteRule ^messages/sent/delete/([0-9]+)/index.html$ index.php?m=messages&p=sdelete&page=$1 [L]


## member guestbook
RewriteRule ^guestbook/index.html$ index.php?m=guestbook [L]
RewriteRule ^guestbook/approved/index.html$ index.php?m=guestbook&p=approved [L]
RewriteRule ^guestbook/unapproved/index.html$ index.php?m=guestbook&p=unapproved [L]
RewriteRule ^guestbook/approved/page([0-9]+)/index.html$ index.php?m=guestbook&p=approved&page=$1 [L]
RewriteRule ^guestbook/unapproved/page([0-9]+)/index.html$ index.php?m=guestbook&p=unapproved&page=$1 [L]
RewriteRule ^guestbook/approve/page([0-9]+)/index([0-9]+).html$ index.php?m=guestbook&p=approve&page=$1&id=$2 [L]
RewriteRule ^guestbook/delete/page([0-9]+)/index([0-9]+).html$ index.php?m=guestbook&p=delete&page=$1&id=$2 [L]


## member blog
RewriteRule ^blog/index.html$ index.php?m=blog [L]
RewriteRule ^blog/entries/index.html$ index.php?m=blog&p=entries [L]
RewriteRule ^blog/entries/page([0-9]+)/index.html$ index.php?m=blog&p=entries&page=$1 [L]
RewriteRule ^blog/add/index.html$ index.php?m=blog&p=edit&id=0 [L]
RewriteRule ^blog/edit/index([0-9]+).html$ index.php?m=blog&p=edit&id=$1 [L]
RewriteRule ^blog/delete/page([0-9]+)/index([0-9]+).html$ index.php?m=blog&p=delete&page=$1&id=$2 [L]
RewriteRule ^blog/comments/index([0-9]+).html$ index.php?m=blog&p=comments&id=$1 [L]
RewriteRule ^blog/comments/delete/([0-9]+)/index([0-9]+).html$ index.php?m=blog&p=deletecomment&id=$1&sid=$2 [L]


## custom pages
RewriteRule ^p/([0-9A-Za-z]+).html$ index.php?m=pages&p=$1 [L]
RewriteRule ^p/([0-9A-Za-z]+)/index.html$ index.php?m=pages&p=$1&id=1 [L]
RewriteRule ^p/([0-9A-Za-z]+)/index([0-9]+).html$ index.php?m=pages&p=$1&id=$2 [L]


## search
RewriteRule ^search/index.html$ index.php?m=search [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/index.html$ index.php?m=search&s=$1&page=$2 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/index.html$ index.php?m=member&p=profile&id=$3&s=$1&page=$2 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/pp([0-9]+)/index.html$ index.php?m=member&p=pictures&id=$3&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/pp([0-9]+)/index([0-9]+).html$ index.php?m=member&p=pictures&id=$3&sid=$5&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/vv([0-9]+)/index.html$ index.php?m=member&p=videos&id=$3&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/vv([0-9]+)/index([0-9]+).html$ index.php?m=member&p=videos&id=$3&sid=$5&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/aa([0-9]+)/index.html$ index.php?m=member&p=audio&id=$3&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/gb([0-9]+)/index.html$ index.php?m=member&p=guestbook&id=$3&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/fr([0-9]+)/index.html$ index.php?m=member&p=friends&id=$3&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/bg([0-9]+)/index.html$ index.php?m=member&p=blog&id=$3&s=$1&page=$2&offset=$4 [L]
RewriteRule ^search/([0-9a-zA-Z]+)/sp([0-9]+)/m([0-9]+)/bg([0-9]+)/index([0-9]+).html$ index.php?m=member&p=blogentry&id=$3&s=$1&page=$2&offset=$4&sid=$5 [L]


## upgrade
RewriteRule ^upgrade/index.html$ index.php?m=upgrade [L]
RewriteRule ^upgrade/success/index.html$ index.php?m=upgrade&p=success [L]
RewriteRule ^upgrade/failure/index.html$ index.php?m=upgrade&p=failure [L]
RewriteRule ^upgrade/payment/index([0-9]+).html$ index.php?m=upgrade&p=payment&id=$1 [L]
RewriteRule ^ipn/([0-9a-zA-Z]+)/index.html$ index.php?m=ipn&p=$1 [L]


## news
RewriteRule ^news/index.html?$ index.php?m=news&p=all [L]
RewriteRule ^news/([0-9]+)/index.html?$ index.php?m=news&p=all&page=$1 [L]
RewriteRule ^news/read/([0-9]+)/index.html?$ index.php?m=news&p=one&id=$1 [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9a-zA-Z_]+)/?$ index.php?m=member&p=profile&id=$1 [L]


</IfModule>
 
G

GOsha

Гость
#2
А вот без шансов.. Иногда работает, что мод_реврайт работает и без "Options +FollowSymLinks"