
30.10.2006, 19:28
|
|
Новичок
Регистрация: 06.07.2006
Сообщений: 15
Провел на форуме: 13550
Репутация:
1
|
|
Есть у меня один mod_rewrite. Но там про index и портал не прописано. Вот его содержимое:
.htaccess
Код:
RewriteEngine on
# Topics
RewriteRule ^topic([^-]*)$ index.php?showtopic=$1&%{query_string}
RewriteRule ^topic_([^-]*)$ index.php?showtopic=$1&%{query_string}
# Forums
RewriteRule ^forum([^-]*)$ index.php?showforum=$1&%{query_string}
RewriteRule ^forum_([^-]*)$ index.php?showforum=$1&%{query_string}
# Users
RewriteRule ^user([^-]*)$ index.php?showuser=$1&%{query_string}
RewriteRule ^user_([^-]*)$ index.php?showuser=$1&%{query_string}
# Other Stuff
RewriteRule ^login(.*)$ index.php?act=Login&CODE=00&%{query_string}
RewriteRule ^help(.*)$ index.php?act=Help&%{query_string}
RewriteRule ^search(.*)$ index.php?act=Search&%{query_string}
RewriteRule ^members(.*)$ index.php?act=Members&%{query_string}
RewriteRule ^calendar(.*)$ index.php?act=Calendar&%{query_string}
RewriteRule ^logout(.*)$ index.php?act=Login&CODE=03&%{query_string}
# Might as well deny access to certain things whilst we're at it
# not essential, but just helps fix people who carelessly leave .txt
# and junk around. You get a real 403, not IPB's silly 403 page.
#
# Comment next line to disable.
RewriteRule archive_in/|archive_out/|sources/|lang/|modules/|Skin/|ssi_templates/ index.php [F]
|
|
|