View file .htaccess

File size: 7.4Kb
AddDefaultCharset UTF-8
Options +FollowSymLinks
Options -Indexes
DirectoryIndex index.php

RewriteEngine on
RewriteRule ^sign_in/?$ /user/sign_in.php [L,QSA]
RewriteRule ^sign_up/?$ /user/sign_up.php [L,QSA]
RewriteRule ^exit/?$ /user/sign_out.php [L,QSA]
RewriteRule ^user/panel/?$ /user/panel.php [L,QSA]
RewriteRule ^user/edit/?$ /user/edit.php [L,QSA]
RewriteRule ^mail/([0-9]+)/?$ /mail/mail_r.php?id=$1 [L,QSA]
RewriteRule ^mail/chat/([0-9]+)/?$ /mail/chat.php?user_id=$1 [L,QSA]
RewriteRule ^mail/write/?$ /mail/write.php [L,QSA]
RewriteRule ^user/settings/?$ /user/settings.php [L,QSA]
RewriteRule ^user/privacy/?$ /user/privacy.php [L,QSA]
RewriteRule ^user/security/?$ /user/security.php [L,QSA]
RewriteRule ^user/avatar/?$ /user/avatar.php [L,QSA]
RewriteRule ^user/load_avatar/?$ /user/load_avatar.php [L,QSA]
RewriteRule ^user/delete_avatar/?$ /user/delete_avatar.php [L,QSA]
RewriteRule ^chat/add_room/?$ /chat/add_room.php [L,QSA]
RewriteRule ^chat/del_room/?$ /chat/delete_room.php [L,QSA]
RewriteRule ^chat/clear_room/?$ /chat/clear_room.php [L,QSA]
RewriteRule ^chat/del_post/?$ /chat/delete_post.php [L,QSA]
RewriteRule ^chat/room/([0-9]+)/?$ /chat/room.php?room_id=$1 [L,QSA]
RewriteRule ^chat/room/([0-9]+)/add/?$ /chat/add_post.php?room_id=$1 [L,QSA]
RewriteRule ^news/add_news/?$ /news/add_news.php [L,QSA]
RewriteRule ^news/edit_news/?$ /news/edit_news.php [L,QSA]
RewriteRule ^news/del_news/?$ /news/delete_news.php [L,QSA]
RewriteRule ^news/article/([0-9]+)/?$ /news/article.php?news_id=$1 [L,QSA]
RewriteRule ^news/([0-9]+)/?$ /news/article.php?news_id=$1 [L,QSA]
RewriteRule ^news/([0-9]+)/comments/?$ /news/comments.php?news_id=$1 [L,QSA]
RewriteRule ^news/add_comment/?$ /news/add_comment.php [L,QSA]
RewriteRule ^news/delete_comment/([0-9]+)/?$ /news/delete_comment.php?news_id=$1 [L,QSA]
RewriteRule ^padmin/settings/?$ /padmin/settings.php [L,QSA]
RewriteRule ^padmin/tags/?$ /padmin/tags.php [L,QSA]
RewriteRule ^padmin/settings_modules/?$ /padmin/settings_modules.php [L,QSA]
RewriteRule ^padmin/installed_modules/?$ /padmin/installed_modules.php [L,QSA]
RewriteRule ^padmin/info/?$ /padmin/info.php [L,QSA]
RewriteRule ^padmin/ads/?$ /padmin/ads.php [L,QSA]
RewriteRule ^padmin/mail/?$ /padmin/mail.php [L,QSA]
RewriteRule ^padmin/pages/?$ /padmin/pages.php [L,QSA]
RewriteRule ^padmin/add-page/?$ /padmin/add_page.php [L,QSA]
RewriteRule ^padmin/edit-page/([0-9]+)/?$ /padmin/edit_page.php?page_id=$1 [L,QSA]
RewriteRule ^padmin/delete-page/([0-9]+)/?$ /padmin/delete_page.php?page_id=$1 [L,QSA]
RewriteRule ^padmin/ban/([0-9]+)/?$ /padmin/ban.php?user_id=$1 [L,QSA]
RewriteRule ^padmin/change-dest/([0-9]+)/?$ /padmin/change_dest.php?user_id=$1 [L,QSA]
RewriteRule ^padmin/ban-list/?$ /padmin/ban-list.php [L,QSA]
RewriteRule ^forum/add_forum/?$ /forum/add_forum.php [L,QSA]
RewriteRule ^forum/add_subforum/([0-9]+)/?$ /forum/add_subforum.php?f_id=$1 [L,QSA]
RewriteRule ^forum/add_topic/([0-9]+)/?$ /forum/add_topic.php?cat_id=$1 [L,QSA]
RewriteRule ^forum/([0-9]+)/?$ /forum/forum.php?f_id=$1 [L,QSA]
RewriteRule ^forum/cat/([0-9]+)/?$ /forum/cat.php?cat_id=$1 [L,QSA]
RewriteRule ^forum/topic([0-9]+)/?$ /forum/topic.php?topic_id=$1 [L,QSA]
RewriteRule ^forum/add_post/([0-9]+)/?$ /forum/add_post.php?topic_id=$1 [L,QSA]
RewriteRule ^forum/edit_post/([0-9]+)/([0-9]+)/?$ /forum/edit_post.php?id=$1&topic_id=$2 [L,QSA]
RewriteRule ^forum/edit_topic/([0-9]+)/?$ /forum/edit_topic.php?topic_id=$1 [L,QSA]
RewriteRule ^forum/delete_post/([0-9]+)/([0-9]+)/?$ /forum/delete_post.php?post_id=$1&topic_id=$2 [L,QSA]
RewriteRule ^forum/delete_topic/([0-9]+)/?$ /forum/delete_topic.php?topic_id=$1 [L,QSA]
RewriteRule ^forum/delete_cat/([0-9]+)/?$ /forum/delete_cat.php?cat_id=$1 [L,QSA]
RewriteRule ^forum/edit_cat/([0-9]+)/?$ /forum/edit_cat.php?cat_id=$1 [L,QSA]
RewriteRule ^forum/delete_forum/([0-9]+)/?$ /forum/delete_forum.php?f_id=$1 [L,QSA]
RewriteRule ^forum/edit_forum/([0-9]+)/?$ /forum/edit_forum.php?f_id=$1 [L,QSA]
RewriteRule ^forum/topic/close/([0-9]+)/?$ /forum/act.php?act=close&topic_id=$1 [L,QSA]
RewriteRule ^forum/topic/open/([0-9]+)/?$ /forum/act.php?act=open&topic_id=$1 [L,QSA]
RewriteRule ^forum/topic/attach/([0-9]+)/?$ /forum/act.php?act=attach&topic_id=$1 [L,QSA]
RewriteRule ^forum/topic/unpin/([0-9]+)/?$ /forum/act.php?act=unpin&topic_id=$1 [L,QSA]
RewriteRule ^forum/new_posts/?$ /forum/new_posts.php [L,QSA]
RewriteRule ^forum/new_topics/?$ /forum/new-topics.php [L,QSA]
RewriteRule ^users/?$ /user/list.php [L,QSA]
RewriteRule ^share/add_dir/?$ /share/add_dir.php [L,QSA]
RewriteRule ^share/([0-9]+)/?$ /share/dirs.php?rid=$1 [L,QSA]
RewriteRule ^share/add_folder/([0-9]+)/?$ /share/add_folder.php?rid=$1 [L,QSA]
RewriteRule ^share/folder/([0-9]+)/?$ /share/folder.php?cat_id=$1 [L,QSA]
RewriteRule ^share/add_file/([0-9]+)/?$ /share/add_file.php?cat_id=$1 [L,QSA]
RewriteRule ^share/file/([0-9]+)/?$ /share/file.php?id=$1 [L,QSA]
RewriteRule ^share/download/([0-9]+)/?$ /share/download.php?file_id=$1 [L,QSA]
RewriteRule ^share/([0-9]+)/comments/?$ /share/comments.php?share_id=$1 [L,QSA]
RewriteRule ^share/add_comment/?$ /share/add_comment.php [L,QSA]
RewriteRule ^share/delete_comment/([0-9]+)/?$ /share/delete_comment.php?share_id=$1 [L,QSA]
RewriteRule ^share/delete_file/?$ /share/delete_file.php [L,QSA]
RewriteRule ^share/delete_dir/([0-9]+)/?$ /share/delete_dir.php?rid=$1 [L,QSA]
RewriteRule ^share/delete_folder/([0-9]+)/([0-9]+)/?$ /share/delete_folder.php?cid=$1&rid=$2 [L,QSA]
RewriteRule ^share/edit_dir/([0-9]+)/?$ /share/edit_dir.php?rid=$1 [L,QSA]
RewriteRule ^share/edit_folder/([0-9]+)/?$ /share/edit_folder.php?cat_id=$1 [L,QSA]
RewriteRule ^share/edit_file/([0-9]+)/?$ /share/edit_file.php?id=$1 [L,QSA]
RewriteRule ^share/new_files/?$ /share/new_files.php [L,QSA]
RewriteRule ^online/?$ /user/online.php [L,QSA]
RewriteRule ^guests/?$ /pages/guests.php [L,QSA]
RewriteRule ^user/([0-9]+)/?$ /user/profile.php?user_id=$1 [L,QSA]
RewriteRule ^pages/([0-9]+)-([a-zA-Z0-9\-]+).html?$ /pages/page.php?page_id=$1&page_name=$2 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]

AddType text/vnd.wap.wml;charset=utf-8 .wml
AddType application/vnd.sonyericsson.mms-template tpl
AddType application/vnd.wap.wmlc .wmlc
AddType text/vnd.wap.wmlscript .wmls
AddType application/vnd.wap.wmlscriptc .wmlsc
AddType image/vnd.wap.wbmp .wbmp
AddType application/vnd.eri.thm .thm 
AddType application/vnd.mophun.application .mpn  
AddType application/vnd.mophun.certificate .mpc
AddType text/vnd.sun.j2me.app-descriptor .jad
Addtype text/x-vmel .mel
Addtype audio/imelody .imy
AddType application/vnd.smaf .mmf
Addtype text/x-vmel .emy
AddType audio/amr .amr
AddType audio/x-wav .wav
AddType application/x-tar .hid
Addtype image/jpeg .jpg 
Addtype image/jpeg .jpeg 
Addtype image/gif .gif 
Addtype image/png .png 
Addtype image/bmp .bmp 
Addtype text/x-imelody .imy 
Addtype text/x-emelody .emy 
Addtype text/x-vcard .vcf 
Addtype text/x-vcalendar .vcs 
Addtype text/calendar .ics 
Addtype application/smil .smil 
Addtype application/smil .smi 
Addtype application/java-archive .jar 
Addtype application/vnd.symbian.install .sis 
Addtype audio/wav .wav 
Addtype audio/midi .midi 
Addtype audio/midi .mid 
Addtype audio/rmf .rmf 
Addtype application/vnd.wap.mms-message .mms 
AddType video/flv .flv
AddType video/mp4 .mp4
Addtype video/3gpp .3gp
Addtype application/zip .zip
Addtype audio/mpeg .mp3