Перейти к содержанию
CMSTOOLS.org - форум поддержки и развития CMS

Рекомендуемые сообщения

Зайди в папку с Денвера и там в поиске файлов введи error.log

вот

 

[Thu Feb 25 11:27:03 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 11:27:03 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 11:27:04 2016] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/1.0.1c PHP/5.3.13 configured -- resuming normal operations
[Thu Feb 25 11:27:04 2016] [notice] Server built: Apr 20 2012 18:42:30
[Thu Feb 25 11:27:04 2016] [notice] Parent: Created child process 13728
[Thu Feb 25 11:27:04 2016] [notice] Disabled use of AcceptEx() WinSock2 API
[Thu Feb 25 11:27:04 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 11:27:05 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 11:27:05 2016] [notice] Child 13728: Child process is running
[Thu Feb 25 11:27:05 2016] [notice] Child 13728: Acquired the start mutex.
[Thu Feb 25 11:27:05 2016] [notice] Child 13728: Starting 25 worker threads.
[Thu Feb 25 11:27:05 2016] [notice] Child 13728: Listening on port 443.
[Thu Feb 25 11:27:05 2016] [notice] Child 13728: Listening on port 8648.
[Thu Feb 25 11:27:05 2016] [notice] Child 13728: Listening on port 443.
[Thu Feb 25 11:27:05 2016] [notice] Child 13728: Listening on port 80.
[Thu Feb 25 11:31:18 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/templates/Default/js/rating.js, referer: http://podark.ua/u1after
[Thu Feb 25 11:32:19 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/templates/Default/js/rating.js, referer: http://podark.ua/id1
[Thu Feb 25 11:35:02 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/templates/Default/js/rating.js, referer: http://podark.ua/settings/function
[Thu Feb 25 11:35:03 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/settings, referer: http://podark.ua/settings/function
[Thu Feb 25 11:35:03 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/settings, referer: http://podark.ua/settings/function
[Thu Feb 25 11:35:27 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/templates/Default/js/rating.js, referer: http://podark.ua/id1
[Thu Feb 25 11:35:47 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/templates/Default/js/rating.js, referer: http://podark.ua/settings/function
[Thu Feb 25 11:35:48 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/settings, referer: http://podark.ua/settings/function
[Thu Feb 25 11:35:48 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/settings, referer: http://podark.ua/settings/function
[Thu Feb 25 11:36:02 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/templates/Default/js/rating.js, referer: http://podark.ua/id1
[Thu Feb 25 11:38:42 2016] [error] [client 127.0.0.1] File does not exist: Z:/home/podark.ua/www/templates/Default/js/rating.js, referer: http://podark.ua/id1
Ссылка на комментарий
Поделиться на другие сайты

[Thu Feb 25 12:51:03 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)

[Thu Feb 25 12:51:04 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)

[Thu Feb 25 12:51:04 2016] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/1.0.1c PHP/5.3.13 configured -- resuming normal operations

[Thu Feb 25 12:51:04 2016] [notice] Server built: Apr 20 2012 18:42:30

[Thu Feb 25 12:51:04 2016] [notice] Parent: Created child process 5156

[Thu Feb 25 12:51:04 2016] [notice] Disabled use of AcceptEx() WinSock2 API

[Thu Feb 25 12:51:04 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)

[Thu Feb 25 12:51:05 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)

[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Child process is running

[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Acquired the start mutex.

[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Starting 25 worker threads.

[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 443.

[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 8648.

[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 443.

[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 80.

[Thu Feb 25 12:51:05 2016] [alert] [client 127.0.0.1] Z:/home/podark.ua/www/.htaccess: Invalid command 'ExpiresActive', perhaps misspelled or defined by a module not included in the server configuration
Ссылка на комментарий
Поделиться на другие сайты

 

[Thu Feb 25 12:51:03 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 12:51:04 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 12:51:04 2016] [notice] Apache/2.2.22 (Win32) mod_ssl/2.2.22 OpenSSL/1.0.1c PHP/5.3.13 configured -- resuming normal operations
[Thu Feb 25 12:51:04 2016] [notice] Server built: Apr 20 2012 18:42:30
[Thu Feb 25 12:51:04 2016] [notice] Parent: Created child process 5156
[Thu Feb 25 12:51:04 2016] [notice] Disabled use of AcceptEx() WinSock2 API
[Thu Feb 25 12:51:04 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 12:51:05 2016] [warn] Init: Name-based SSL virtual hosts only work for clients with TLS server name indication support (RFC 4366)
[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Child process is running
[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Acquired the start mutex.
[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Starting 25 worker threads.
[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 443.
[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 8648.
[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 443.
[Thu Feb 25 12:51:05 2016] [notice] Child 5156: Listening on port 80.
[Thu Feb 25 12:51:05 2016] [alert] [client 127.0.0.1] Z:/home/podark.ua/www/.htaccess: Invalid command 'ExpiresActive', perhaps misspelled or defined by a module not included in the server configuration

 

Да проблема в .htaccess кинь .htaccess из корня сайта сюда

  • Upvote 1
Ссылка на комментарий
Поделиться на другие сайты

Да проблема в .htaccess кинь .htaccess из корня сайта сюда

DirectoryIndex index.php



php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on


# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html 
AddOutputFilterByType DEFLATE text/xml 
AddOutputFilterByType DEFLATE text/css 
AddOutputFilterByType DEFLATE application/xml 
AddOutputFilterByType DEFLATE application/xhtml+xml 
AddOutputFilterByType DEFLATE application/rss+xml 
AddOutputFilterByType DEFLATE application/javascript 
AddOutputFilterByType DEFLATE application/x-javascript  
# Or, compress certain file types by extension:  
SetOutputFilter DEFLATE




FileETag MTime Size
<ifmodule mod_expires.c>
<filesmatch ".(jpg|jpeg|gif|png|ico|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 month"
</filesmatch>
</ifmodule>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
Header append Vary User-Agent
</IfModule>
<ifModule mod_gzip.c>
  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
  ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>
<ifModule mod_headers.c>
  <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=2592000, public"
  </filesMatch>
  <filesMatch "\\.(css)$">
    Header set Cache-Control "max-age=604800, public"
  </filesMatch>
  <filesMatch "\\.(js)$">
    Header set Cache-Control "max-age=216000, private"
  </filesMatch>
  <filesMatch "\\.(xml|txt)$">
    Header set Cache-Control "max-age=216000, public, must-revalidate"
  </filesMatch>
  <filesMatch "\\.(html|htm|php)$">
    Header set Cache-Control "max-age=1, private, must-revalidate"
  </filesMatch>
</ifModule>


################ Expires Control ################
ExpiresActive On
ExpiresDefault A0
<FilesMatch \"\.(gif|jpg|jpeg|png|swf)$\">
# 2 weeks
ExpiresDefault A1209600
Header append Cache-Control \"public\"
</FilesMatch>
<FilesMatch \"\.(xml|txt|html)$\">
# 2 hours
ExpiresDefault A7200
Header append Cache-Control \"proxy-revalidate\"
</FilesMatch>
<FilesMatch \"\.(js|css)$\">
# 3 days
ExpiresDefault A259200
Header append Cache-Control \"proxy-revalidate\"
</FilesMatch>






# gzip сжатие.
<IfModule mod_deflate.c>


# html, txt, css, js, json, xml, htc:
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component


# веб-шрифты и svg:
<FilesMatch "\.(ttf|otf|eot|svg)$" >
    SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>


<ifModule mod_gzip.c>


    mod_gzip_on Yes


    mod_gzip_dechunk Yes


    mod_gzip_item_include file .(css|js|x?html?|php|xml)$


    mod_gzip_item_include handler ^cgi-script$


    mod_gzip_item_include mime ^text/.*


    mod_gzip_item_include mime ^application/x-javascript.*


    mod_gzip_item_exclude mime ^image/.*


    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*


</ifModule>


# 1 YEAR
<filesmatch "\.(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</filesmatch>
# 1 WEEK
<filesmatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</filesmatch>
# 2 DAYS
<filesmatch "\.(xml|txt|css|js)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</filesmatch>
# 1 MIN
<filesmatch "\.(html|htm|php)$">
Header set Cache-Control "max-age=60, private, proxy-revalidate"
</filesmatch>


# Cache-Control
<ifModule mod_headers.c>
# 30 дней
<filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
# 30 дней
<filesMatch "\.(css|js)$">
Header set Cache-Control "max-age=2592000, public"
</filesMatch>
# 2 дня
<filesMatch "\.(xml|txt)$">
Header set Cache-Control "max-age=172800, public, must-revalidate"
</filesMatch>
# 1 день
<filesMatch "\.(html|htm|php)$">
Header set Cache-Control "max-age=172800, private, must-revalidate"
</filesMatch>
</ifModule>


# кеширование в браузере на стороне пользователя
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access 7 days"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType text/html "access plus 7 day"
ExpiresByType text/x-javascript "access 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType application/x-shockwave-flash "access 1 year"
</IfModule>


# использование кеша браузеров
FileETag MTime Size
<ifmodule mod_expires.c>
<filesmatch ".(jpg|jpeg|gif|png|ico|css|js)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
</ifmodule>


DirectoryIndex index.php
AddDefaultCharset windows-1251


RewriteEngine On
# Optimize deflate
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html




# Accses in folder
Options All -Indexes


# Loading Errors
ErrorDocument 401 /ups/401.php
ErrorDocument 403 /ups/403.php
ErrorDocument 404 /ups/404.php
ErrorDocument 500 /ups/500.php


# Отключаем вывод ошибок пользователям
php_flag display_errors off


# Регистрация
RewriteRule ^reg/(/?)+$ index.php?go=register [L]


# Страница юзера
RewriteRule ^u([0-9]+)(/?)+$ index.php?go=profile&id=$1 [L]
RewriteRule ^u([0-9]+)after(/?)+$ index.php?go=profile&id=$1&after=1 [L]


# Редактирование страницы
RewriteRule ^editmypage(/?)+$ index.php?go=editprofile [L]
RewriteRule ^editmypage/contact(/?)+$ index.php?go=editprofile&act=contact [L]
RewriteRule ^editmypage/interests(/?)+$ index.php?go=editprofile&act=interests [L]
RewriteRule ^editmypage/all(/?)+$ index.php?go=editprofile&act=all [L]


# Альбомы в группах
RewriteRule ^albums-([0-9]+)(/?)+$ index.php?go=groups_albums&uid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/add(/?)+$ index.php?go=groups_albums&act=add&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&aid=$2&page=$3&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/comments(/?)+$ index.php?go=groups_albums&act=all_comments&uid=$1 [L]
RewriteRule ^albums-([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=all_comments&uid=$1&page=$3 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/comments(/?)+$ index.php?go=groups_albums&act=all_comments&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=all_comments&aid=$2&page=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/editphotos/([0-9]+)(/?)+$ index.php?go=groups_albums&act=edit_pos_photos&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/newphotos(/?)+$ index.php?go=groups_albums&act=new_photos&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/newphotos/([0-9]+)(/?)+$ index.php?go=groups_albums&act=new_photos&page=$2&pid=$1 [L]
        
# Просмотр фото в группах
RewriteRule ^photo-([0-9]+)_([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&pid=$1&aid=$3 [L]        


# Альбомы
RewriteRule ^albums/([0-9]+)(/?)+$ index.php?go=albums&uid=$1 [L]
RewriteRule ^albums/add/([0-9]+)(/?)+$ index.php?go=albums&act=add&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$1&page=$2 [L]
RewriteRule ^albums/comments/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&uid=$1 [L]
RewriteRule ^albums/comments/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&uid=$1&page=$2 [L]
RewriteRule ^albums/view/([0-9]+)/comments/(/?)+$ index.php?go=albums&act=all_comments&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&aid=$1&page=$2 [L]
RewriteRule ^albums/editphotos/([0-9]+)(/?)+$ index.php?go=albums&act=edit_pos_photos&aid=$1 [L]
RewriteRule ^albums/newphotos(/?)+$ index.php?go=albums&act=new_photos [L]
RewriteRule ^albums/newphotos/([0-9]+)(/?)+$ index.php?go=albums&act=new_photos&page=$1 [L]


# Просмотр фотографий
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=user_page(/?)+$ index.php?go=profile&id=$1 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=all_comments(/?)+$ index.php?go=albums&act=all_comments&uid=$1 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=wall/fuser=([0-9]+)(/?)+$ index.php?go=profile&id=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=notes/id=([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=news(/?)+$ index.php?go=news [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=msg/id=([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)_sec=album_comments(/?)+$ index.php?go=albums&act=all_comments&aid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)_sec=newphotos(/?)+$ index.php?go=albums&act=new_photos [L]
RewriteRule ^chat /index.php?go=chat [L]


# Работа
    RewriteRule ^jobs(/?)+$ index.php?go=jobs [L]
    RewriteRule ^jobs/news_all(/?)+$ index.php?go=jobs&act=news_all [L]
    RewriteRule ^jobs/my_news_jobs/user_id/([0-9]+)(/?)+$ index.php?go=jobs&act=my_news_jobs&user_id=$1 [L]
    RewriteRule ^jobs/news_adds(/?)+$ index.php?go=jobs&act=news_adds [L]
    RewriteRule ^jobs/resume_create(/?)+$ index.php?go=jobs&act=resume_create [L]
RewriteRule ^jobs/news_all/page/([0-9]+)(/?)+$ /index.php?go=jobs&act=news_all&page=$1 [L]
RewriteRule ^jobs/news_wiev_all/id/([0-9]+)(/?)+$ /index.php?go=jobs&act=news_wiev_all&id=$1 [L]


# Карту
RewriteRule ^ajax_mapsBox([0-9]+)(/?)$ index.php?go=mapsbox&act=mapsbox&id=$1 [L]
RewriteRule ^ajax_mapsSend([0-9]+)(/?)$ index.php?go=mapsbox&act=send&id=$1
RewriteRule ^maps_travel(/?)+$ index.php?go=mapsbox&act=maps_travel [L]


# Потверждение групп пользователя
RewriteRule ^confirmation/confirm_wiev(/?)+$ index.php?go=confirmation&act=confirm_wiev [L]
RewriteRule ^confirmation/confirm_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=confirm_wiev&page=$1 [L]
RewriteRule ^confirmation/verification_wiev(/?)+$ index.php?go=confirmation&act=verification_wiev [L]
RewriteRule ^confirmation/verification_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=verification_wiev&page=$1 [L]
RewriteRule ^confirmation/jobs_wiev(/?)+$ index.php?go=confirmation&act=jobs_wiev [L] 
RewriteRule ^confirmation/jobs_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=jobs_wiev&page=$1 [L] 




# Друзья
RewriteRule ^friedns/send_demand/([0-9]+)(/?)+$ index.php?go=friends&act=send_demand&for_user_id=$1 [L]
RewriteRule ^friedns/take/([0-9]+)(/?)+$ index.php?go=friends&act=take&take_user_id=$1 [L]
RewriteRule ^friedns/reject/([0-9]+)(/?)+$ index.php?go=friends&act=reject&reject_user_id=$1 [L]
RewriteRule ^friends(/?)+$ index.php?go=friends [L]
RewriteRule ^friends/([0-9]+)(/?)+$ index.php?go=friends&user_id=$1 [L]
RewriteRule ^friends/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&user_id=$1&page=$2 [L]
RewriteRule ^friends/online/([0-9]+)(/?)+$ index.php?go=friends&act=online&user_id=$1 [L]
RewriteRule ^friends/online/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&act=online&user_id=$1&page=$2 [L]
RewriteRule ^friends/requests(/?)+$ index.php?go=friends&act=requests [L]
RewriteRule ^friends/requests/page/([0-9]+)(/?)+$ index.php?go=friends&act=requests&page=$1 [L]
RewriteRule ^friends/common/([0-9]+)(/?)+$ index.php?go=friends&act=common&uid=$1 [L]
RewriteRule ^friends/common/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&act=common&uid=$1&page=$2 [L]


# Закладки
RewriteRule ^fave(/?)+$ index.php?go=fave [L]
RewriteRule ^fave/page/([0-9]+)(/?)+$ index.php?go=fave&page=$1 [L] 
RewriteRule ^miss/([0-9]+)(/?)+$ index.php?go=miss&act=page&id=$1 [L]
    RewriteRule ^miss(/?)+$ index.php?go=miss&act=top [L]
RewriteRule ^mister/([0-9]+)(/?)+$ index.php?go=mister&act=page&id=$1 [L]
    RewriteRule ^mister(/?)+$ index.php?go=mister&act=top [L]
RewriteRule ^tv(/?)+$ index.php?go=tv [L]
RewriteRule ^yps /index.php?go=app [L]
    RewriteRule ^kino(/?)+$ /index.php?go=app&act=kino [L]
    RewriteRule ^photoshop(/?)+$ /index.php?go=app&act=photoshop [L]
# Отзывы
RewriteRule ^review(/?)+$ index.php?go=review [L]
RewriteRule ^review&page=([0-9]+)(/?)+$ index.php?go=review&page=$1 [L]


# Заметки
RewriteRule ^notes(/?)+$ index.php?go=notes [L]
RewriteRule ^notes/add(/?)+$ index.php?go=notes&act=add [L]
RewriteRule ^notes/edit/([0-9]+)(/?)+$ index.php?go=notes&act=edit&note_id=$1 [L]
RewriteRule ^notes/view/([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$1 [L]
RewriteRule ^notes/([0-9]+)(/?)+$ index.php?go=notes&get_user_id=$1 [L]
RewriteRule ^notes/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=notes&get_user_id=$1&page=$2 [L]


# Видео
RewriteRule ^videos(/?)+$ index.php?go=videos [L]
RewriteRule ^videos/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^videos/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1&page=$2 [L]
RewriteRule ^videos/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^video([0-9]+)_([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=wall/fuser=([0-9]+)(/?)+$ index.php?go=profile&id=$3 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=notes/id=([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$3 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=news(/?)+$ index.php?go=news [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=msg/id=([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$3 [L]


# Поиск
RewriteRule ^search/query=(.*)&type=([0-3]+)(/?)+$ index.php?go=search&query=$1&type=$2 [L]


# Новости
RewriteRule ^news(/?)+$ index.php?go=news [L]
RewriteRule ^news/updates(/?)+$ index.php?go=news&type=updates [L]
RewriteRule ^news/photos(/?)+$ index.php?go=news&type=photos [L]
RewriteRule ^news/videos(/?)+$ index.php?go=news&type=videos [L]
RewriteRule ^news/notifications(/?)+$ index.php?go=news&type=notifications [L]


# Сообщения
RewriteRule ^messages(/?)+$ index.php?go=messages [L]
RewriteRule ^messages/i(/?)+$ index.php?go=messages&info=1 [L]
RewriteRule ^messages/outbox(/?)+$ index.php?go=messages&act=outbox [L]
RewriteRule ^messages/show/([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$1 [L]


# Стена
RewriteRule ^wall([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=page [L]
RewriteRule ^wall([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=page&page=$2 [L]
RewriteRule ^wall([0-9]+)_sec=own(/?)+$ index.php?go=wall&uid=$1&type=own [L]
RewriteRule ^wall([0-9]+)_sec=own&page=([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=own&page=$2 [L]
RewriteRule ^wall([0-9]+)_([0-9]+)(/?)+$ index.php?go=wall&uid=$1&rid=$2&type=record [L]


# Настройки
RewriteRule ^settings(/?)+$ index.php?go=settings [L]
RewriteRule ^settings/privacy(/?)+$ index.php?go=settings&act=privacy [L]
RewriteRule ^settings/blacklist(/?)+$ index.php?go=settings&act=blacklist [L]
RewriteRule ^settings/design(/?)+$ index.php?go=settings&act=design [L]
RewriteRule ^settings/notify(/?)+$ index.php?go=settings&act=notify [L]


# Помощь
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)support $1index.php?go=support [QSA,L]


RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)support $1index.php?go=support [QSA,L]
RewriteRule ^support(/?)+$ index.php?go=support [L]


# Воостановление пароля
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)restore $1index.php?go=restore [QSA,L]
RewriteRule ^restore(/?)+$ index.php?go=restore [L]


# Блог сайта
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)blog $1index.php?go=blog [QSA,L]


RewriteCond %{QUERY_STRING} ^id=([0-9]+)
RewriteRule ^(.*)blog $1index.php?go=blog [QSA,L]
RewriteRule ^blog(/?)+$ index.php?go=blog [L]


# UBM
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)balance $1index.php?go=balance [QSA,L]
RewriteRule ^balance(/?)+$ index.php?go=balance [L]


# WEBTOMAT
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)webtomat $1index.php?go=webtomat [QSA,L]
RewriteRule ^webtomat(/?)+$ index.php?go=webtomat [L]


# Розыгрыши
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)loto $1index.php?go=nonsense [QSA,L]
RewriteRule ^loto(/?)+$ index.php?go=nonsense [L]


# Реф. ссылка на регистрацию
RewriteRule ^reg([0-9]+)(/?)+$ index.php?reg=$1 [L]


# Подарки
RewriteCond %{QUERY_STRING} ^new=([0-9]+)
RewriteRule ^(.*)gifts([0-9]+) $1index.php?go=gifts&uid=$2 [QSA,L]


RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)gifts([0-9]+) $1index.php?go=gifts&uid=$2 [QSA,L]


RewriteRule ^gifts([0-9]+)(/?)+$ index.php?go=gifts&uid=$1 [L]


# Сообщества
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)groups $1index.php?go=groups [QSA,L]


RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)groups $1index.php?go=groups [QSA,L]
RewriteRule ^groups(/?)+$ index.php?go=groups [L]


RewriteRule ^wallgroups([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups&act=wallgroups&pid=$1&id=$2 [L]


# Музыка
RewriteRule ^audio(/?)+$ index.php?go=audio [L]
RewriteRule ^audio([0-9]+)(/?)+$ index.php?go=audio&uid=$1 [L]


# Документы
RewriteRule ^docs(/?)+$ index.php?go=doc&act=list [L]


RewriteRule ^chat /index.php?go=chat [L]


# Соц.сети
RewriteRule ^mysocial(/?)+$ index.php?go=social [L]


# Игры
RewriteRule ^apps(/?)+$ index.php?go=apps [L]
RewriteRule ^app([0-9]+)(/?)+$ index.php?go=apps&act=start&id=$1 [L]
RewriteRule ^addapp(/?)+$ index.php?go=apps&act=add [L]


# Apps
RewriteRule ^game(/?)$ index.php?go=game [L]
RewriteRule ^recomend(/?)$ index.php?go=recomend [L]
RewriteRule ^game/page/([0-9+])(/?)$ index.php?go=game&page=$1 [L]
RewriteRule ^game/([0-9]+)(/?)$ index.php?go=game&about_app=$1 [L,QSA] 




# Сообщества -> Публичные страницы -> Аудио
RewriteRule ^public/audio([0-9]+)(/?)+$ index.php?go=public_audio&pid=$1 [L]


# Сообщества -> Публичные страницы -> Видео
RewriteRule ^public/videos([0-9]+)(/?)+$ index.php?go=public_videos&pid=$1 [L]


# Моя реклама
RewriteRule ^mybanners(/?)+$ index.php?go=mybanners [L]


# Сообщества -> Публичные страницы -> Обсуждения
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)forum([0-9]+) $1index.php?go=groups_forum&public_id=$2 [QSA,L]


RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)forum([0-9]+) $1index.php?go=groups_forum&public_id=$2 [QSA,L]
RewriteRule ^forum([0-9]+)(/?)+$ index.php?go=groups_forum&public_id=$1 [L]


# Сообщества -> Публичные страницы
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^public([0-9]+)(/?)+$ index.php?go=public&pid=$1 [L]


#RewriteRule ^([^.]+)/?$ index.php?go=public&get_adres=$1 [L]
RewriteRule ^public([0-9]+)(/?)+$ index.php?go=public&pid=$1 [L]




RewriteRule ^yps /index.php?go=app [L]
        RewriteRule ^kino(/?)+$ /index.php?go=app&act=kino [L]
        RewriteRule ^photoshop(/?)+$ /index.php?go=app&act=photoshop [L]


RewriteRule ^settings/function(/?)+$ index.php?go=settings&act=function [L]




# Short Links for profiles and publics
RewriteRule ^([^.]+)/?$ index.php?go=short_link&link=$1 [L]


# Стат страницы
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+).html$ index.php?go=static&page=$1 [L]


# Чат
RewriteRule ^chat/(/?)+$ /index.php?go=im_chat [L]


# Страницы ошибок
        ErrorDocument 404 /404.php




FileETag MTime Size 
<ifmodule mod_expires.c> 
<filesmatch ".(jpg|jpeg|gif|png|ico|css|js)$"> 
ExpiresActive on 
ExpiresDefault "access plus 1 month" 
</filesmatch> 
</ifmodule>
<ifModule mod_gzip.c>
  mod_gzip_on Yes
  mod_gzip_dechunk Yes
  mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
  mod_gzip_item_include handler ^cgi-script$
  mod_gzip_item_include mime ^text/.*
  mod_gzip_item_include mime ^application/x-javascript.*
  mod_gzip_item_exclude mime ^image/.*
  mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType image/gif "access plus 2592000 seconds"
  ExpiresByType image/jpeg "access plus 2592000 seconds"
  ExpiresByType image/png "access plus 2592000 seconds"
  ExpiresByType text/css "access plus 604800 seconds"
  ExpiresByType text/javascript "access plus 216000 seconds"
  ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>
<ifModule mod_headers.c>
  <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=2592000, public"
  </filesMatch>
  <filesMatch "\\.(css)$">
    Header set Cache-Control "max-age=604800, public"
  </filesMatch>
  <filesMatch "\\.(js)$">
    Header set Cache-Control "max-age=216000, private"
  </filesMatch>
  <filesMatch "\\.(xml|txt)$">
    Header set Cache-Control "max-age=216000, public, must-revalidate"
  </filesMatch>
  <filesMatch "\\.(html|htm|php)$">
    Header set Cache-Control "max-age=1, private, must-revalidate"
  </filesMatch>
</ifModule>
Ссылка на комментарий
Поделиться на другие сайты

Замени на

 
DirectoryIndex index.php
AddDefaultCharset windows-1251
 
RewriteEngine On
# Optimize deflate
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
 
 
# Accses in folder
Options All -Indexes
 
# Loading Errors
ErrorDocument 401 /ups/401.php
ErrorDocument 403 /ups/403.php
ErrorDocument 404 /ups/404.php
ErrorDocument 500 /ups/500.php
 
# Отключаем вывод ошибок пользователям
php_flag display_errors off
 
# Регистрация
RewriteRule ^reg/(/?)+$ index.php?go=register [L]
 
# Страница юзера
RewriteRule ^u([0-9]+)(/?)+$ index.php?go=profile&id=$1 [L]
RewriteRule ^u([0-9]+)after(/?)+$ index.php?go=profile&id=$1&after=1 [L]
 
# Редактирование страницы
RewriteRule ^editmypage(/?)+$ index.php?go=editprofile [L]
RewriteRule ^editmypage/contact(/?)+$ index.php?go=editprofile&act=contact [L]
RewriteRule ^editmypage/interests(/?)+$ index.php?go=editprofile&act=interests [L]
RewriteRule ^editmypage/all(/?)+$ index.php?go=editprofile&act=all [L]
 
# Альбомы в группах
RewriteRule ^albums-([0-9]+)(/?)+$ index.php?go=groups_albums&uid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/add(/?)+$ index.php?go=groups_albums&act=add&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&aid=$2&page=$3&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/comments(/?)+$ index.php?go=groups_albums&act=all_comments&uid=$1 [L]
RewriteRule ^albums-([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=all_comments&uid=$1&page=$3 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/comments(/?)+$ index.php?go=groups_albums&act=all_comments&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=all_comments&aid=$2&page=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/editphotos/([0-9]+)(/?)+$ index.php?go=groups_albums&act=edit_pos_photos&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/newphotos(/?)+$ index.php?go=groups_albums&act=new_photos&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/newphotos/([0-9]+)(/?)+$ index.php?go=groups_albums&act=new_photos&page=$2&pid=$1 [L]
        
# Просмотр фото в группах
RewriteRule ^photo-([0-9]+)_([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&pid=$1&aid=$3 [L]        
 
# Альбомы
RewriteRule ^albums/([0-9]+)(/?)+$ index.php?go=albums&uid=$1 [L]
RewriteRule ^albums/add/([0-9]+)(/?)+$ index.php?go=albums&act=add&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$1&page=$2 [L]
RewriteRule ^albums/comments/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&uid=$1 [L]
RewriteRule ^albums/comments/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&uid=$1&page=$2 [L]
RewriteRule ^albums/view/([0-9]+)/comments/(/?)+$ index.php?go=albums&act=all_comments&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&aid=$1&page=$2 [L]
RewriteRule ^albums/editphotos/([0-9]+)(/?)+$ index.php?go=albums&act=edit_pos_photos&aid=$1 [L]
RewriteRule ^albums/newphotos(/?)+$ index.php?go=albums&act=new_photos [L]
RewriteRule ^albums/newphotos/([0-9]+)(/?)+$ index.php?go=albums&act=new_photos&page=$1 [L]
 
# Просмотр фотографий
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=user_page(/?)+$ index.php?go=profile&id=$1 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=all_comments(/?)+$ index.php?go=albums&act=all_comments&uid=$1 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=wall/fuser=([0-9]+)(/?)+$ index.php?go=profile&id=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=notes/id=([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=news(/?)+$ index.php?go=news [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=msg/id=([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)_sec=album_comments(/?)+$ index.php?go=albums&act=all_comments&aid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)_sec=newphotos(/?)+$ index.php?go=albums&act=new_photos [L]
RewriteRule ^chat /index.php?go=chat [L]
 
# Работа
    RewriteRule ^jobs(/?)+$ index.php?go=jobs [L]
    RewriteRule ^jobs/news_all(/?)+$ index.php?go=jobs&act=news_all [L]
    RewriteRule ^jobs/my_news_jobs/user_id/([0-9]+)(/?)+$ index.php?go=jobs&act=my_news_jobs&user_id=$1 [L]
    RewriteRule ^jobs/news_adds(/?)+$ index.php?go=jobs&act=news_adds [L]
    RewriteRule ^jobs/resume_create(/?)+$ index.php?go=jobs&act=resume_create [L]
RewriteRule ^jobs/news_all/page/([0-9]+)(/?)+$ /index.php?go=jobs&act=news_all&page=$1 [L]
RewriteRule ^jobs/news_wiev_all/id/([0-9]+)(/?)+$ /index.php?go=jobs&act=news_wiev_all&id=$1 [L]
 
# Карту
RewriteRule ^ajax_mapsBox([0-9]+)(/?)$ index.php?go=mapsbox&act=mapsbox&id=$1 [L]
RewriteRule ^ajax_mapsSend([0-9]+)(/?)$ index.php?go=mapsbox&act=send&id=$1
RewriteRule ^maps_travel(/?)+$ index.php?go=mapsbox&act=maps_travel [L]
 
# Потверждение групп пользователя
RewriteRule ^confirmation/confirm_wiev(/?)+$ index.php?go=confirmation&act=confirm_wiev [L]
RewriteRule ^confirmation/confirm_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=confirm_wiev&page=$1 [L]
RewriteRule ^confirmation/verification_wiev(/?)+$ index.php?go=confirmation&act=verification_wiev [L]
RewriteRule ^confirmation/verification_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=verification_wiev&page=$1 [L]
RewriteRule ^confirmation/jobs_wiev(/?)+$ index.php?go=confirmation&act=jobs_wiev [L]
RewriteRule ^confirmation/jobs_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=jobs_wiev&page=$1 [L]
 
 
# Друзья
RewriteRule ^friedns/send_demand/([0-9]+)(/?)+$ index.php?go=friends&act=send_demand&for_user_id=$1 [L]
RewriteRule ^friedns/take/([0-9]+)(/?)+$ index.php?go=friends&act=take&take_user_id=$1 [L]
RewriteRule ^friedns/reject/([0-9]+)(/?)+$ index.php?go=friends&act=reject&reject_user_id=$1 [L]
RewriteRule ^friends(/?)+$ index.php?go=friends [L]
RewriteRule ^friends/([0-9]+)(/?)+$ index.php?go=friends&user_id=$1 [L]
RewriteRule ^friends/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&user_id=$1&page=$2 [L]
RewriteRule ^friends/online/([0-9]+)(/?)+$ index.php?go=friends&act=online&user_id=$1 [L]
RewriteRule ^friends/online/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&act=online&user_id=$1&page=$2 [L]
RewriteRule ^friends/requests(/?)+$ index.php?go=friends&act=requests [L]
RewriteRule ^friends/requests/page/([0-9]+)(/?)+$ index.php?go=friends&act=requests&page=$1 [L]
RewriteRule ^friends/common/([0-9]+)(/?)+$ index.php?go=friends&act=common&uid=$1 [L]
RewriteRule ^friends/common/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&act=common&uid=$1&page=$2 [L]
 
# Закладки
RewriteRule ^fave(/?)+$ index.php?go=fave [L]
RewriteRule ^fave/page/([0-9]+)(/?)+$ index.php?go=fave&page=$1 [L]
RewriteRule ^miss/([0-9]+)(/?)+$ index.php?go=miss&act=page&id=$1 [L]
    RewriteRule ^miss(/?)+$ index.php?go=miss&act=top [L]
RewriteRule ^mister/([0-9]+)(/?)+$ index.php?go=mister&act=page&id=$1 [L]
    RewriteRule ^mister(/?)+$ index.php?go=mister&act=top [L]
RewriteRule ^tv(/?)+$ index.php?go=tv [L]
RewriteRule ^yps /index.php?go=app [L]
    RewriteRule ^kino(/?)+$ /index.php?go=app&act=kino [L]
    RewriteRule ^photoshop(/?)+$ /index.php?go=app&act=photoshop [L]
# Отзывы
RewriteRule ^review(/?)+$ index.php?go=review [L]
RewriteRule ^review&page=([0-9]+)(/?)+$ index.php?go=review&page=$1 [L]
 
# Заметки
RewriteRule ^notes(/?)+$ index.php?go=notes [L]
RewriteRule ^notes/add(/?)+$ index.php?go=notes&act=add [L]
RewriteRule ^notes/edit/([0-9]+)(/?)+$ index.php?go=notes&act=edit&note_id=$1 [L]
RewriteRule ^notes/view/([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$1 [L]
RewriteRule ^notes/([0-9]+)(/?)+$ index.php?go=notes&get_user_id=$1 [L]
RewriteRule ^notes/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=notes&get_user_id=$1&page=$2 [L]
 
# Видео
RewriteRule ^videos(/?)+$ index.php?go=videos [L]
RewriteRule ^videos/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^videos/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1&page=$2 [L]
RewriteRule ^videos/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^video([0-9]+)_([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=wall/fuser=([0-9]+)(/?)+$ index.php?go=profile&id=$3 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=notes/id=([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$3 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=news(/?)+$ index.php?go=news [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=msg/id=([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$3 [L]
 
# Поиск
RewriteRule ^search/query=(.*)&type=([0-3]+)(/?)+$ index.php?go=search&query=$1&type=$2 [L]
 
# Новости
RewriteRule ^news(/?)+$ index.php?go=news [L]
RewriteRule ^news/updates(/?)+$ index.php?go=news&type=updates [L]
RewriteRule ^news/photos(/?)+$ index.php?go=news&type=photos [L]
RewriteRule ^news/videos(/?)+$ index.php?go=news&type=videos [L]
RewriteRule ^news/notifications(/?)+$ index.php?go=news&type=notifications [L]
 
# Сообщения
RewriteRule ^messages(/?)+$ index.php?go=messages [L]
RewriteRule ^messages/i(/?)+$ index.php?go=messages&info=1 [L]
RewriteRule ^messages/outbox(/?)+$ index.php?go=messages&act=outbox [L]
RewriteRule ^messages/show/([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$1 [L]
 
# Стена
RewriteRule ^wall([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=page [L]
RewriteRule ^wall([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=page&page=$2 [L]
RewriteRule ^wall([0-9]+)_sec=own(/?)+$ index.php?go=wall&uid=$1&type=own [L]
RewriteRule ^wall([0-9]+)_sec=own&page=([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=own&page=$2 [L]
RewriteRule ^wall([0-9]+)_([0-9]+)(/?)+$ index.php?go=wall&uid=$1&rid=$2&type=record [L]
 
# Настройки
RewriteRule ^settings(/?)+$ index.php?go=settings [L]
RewriteRule ^settings/privacy(/?)+$ index.php?go=settings&act=privacy [L]
RewriteRule ^settings/blacklist(/?)+$ index.php?go=settings&act=blacklist [L]
RewriteRule ^settings/design(/?)+$ index.php?go=settings&act=design [L]
RewriteRule ^settings/notify(/?)+$ index.php?go=settings&act=notify [L]
 
# Помощь
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)support $1index.php?go=support [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)support $1index.php?go=support [QSA,L]
RewriteRule ^support(/?)+$ index.php?go=support [L]
 
# Воостановление пароля
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)restore $1index.php?go=restore [QSA,L]
RewriteRule ^restore(/?)+$ index.php?go=restore [L]
 
# Блог сайта
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)blog $1index.php?go=blog [QSA,L]
 
RewriteCond %{QUERY_STRING} ^id=([0-9]+)
RewriteRule ^(.*)blog $1index.php?go=blog [QSA,L]
RewriteRule ^blog(/?)+$ index.php?go=blog [L]
 
# UBM
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)balance $1index.php?go=balance [QSA,L]
RewriteRule ^balance(/?)+$ index.php?go=balance [L]
 
# WEBTOMAT
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)webtomat $1index.php?go=webtomat [QSA,L]
RewriteRule ^webtomat(/?)+$ index.php?go=webtomat [L]
 
# Розыгрыши
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)loto $1index.php?go=nonsense [QSA,L]
RewriteRule ^loto(/?)+$ index.php?go=nonsense [L]
 
# Реф. ссылка на регистрацию
RewriteRule ^reg([0-9]+)(/?)+$ index.php?reg=$1 [L]
 
# Подарки
RewriteCond %{QUERY_STRING} ^new=([0-9]+)
RewriteRule ^(.*)gifts([0-9]+) $1index.php?go=gifts&uid=$2 [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)gifts([0-9]+) $1index.php?go=gifts&uid=$2 [QSA,L]
 
RewriteRule ^gifts([0-9]+)(/?)+$ index.php?go=gifts&uid=$1 [L]
 
# Сообщества
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)groups $1index.php?go=groups [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)groups $1index.php?go=groups [QSA,L]
RewriteRule ^groups(/?)+$ index.php?go=groups [L]
 
RewriteRule ^wallgroups([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups&act=wallgroups&pid=$1&id=$2 [L]
 
# Музыка
RewriteRule ^audio(/?)+$ index.php?go=audio [L]
RewriteRule ^audio([0-9]+)(/?)+$ index.php?go=audio&uid=$1 [L]
 
# Документы
RewriteRule ^docs(/?)+$ index.php?go=doc&act=list [L]
 
RewriteRule ^chat /index.php?go=chat [L]
 
# Соц.сети
RewriteRule ^mysocial(/?)+$ index.php?go=social [L]
 
# Игры
RewriteRule ^apps(/?)+$ index.php?go=apps [L]
RewriteRule ^app([0-9]+)(/?)+$ index.php?go=apps&act=start&id=$1 [L]
RewriteRule ^addapp(/?)+$ index.php?go=apps&act=add [L]
 
# Apps
RewriteRule ^game(/?)$ index.php?go=game [L]
RewriteRule ^recomend(/?)$ index.php?go=recomend [L]
RewriteRule ^game/page/([0-9+])(/?)$ index.php?go=game&page=$1 [L]
RewriteRule ^game/([0-9]+)(/?)$ index.php?go=game&about_app=$1 [L,QSA]
 
 
# Сообщества -> Публичные страницы -> Аудио
RewriteRule ^public/audio([0-9]+)(/?)+$ index.php?go=public_audio&pid=$1 [L]
 
# Сообщества -> Публичные страницы -> Видео
RewriteRule ^public/videos([0-9]+)(/?)+$ index.php?go=public_videos&pid=$1 [L]
 
# Моя реклама
RewriteRule ^mybanners(/?)+$ index.php?go=mybanners [L]
 
# Сообщества -> Публичные страницы -> Обсуждения
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)forum([0-9]+) $1index.php?go=groups_forum&public_id=$2 [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)forum([0-9]+) $1index.php?go=groups_forum&public_id=$2 [QSA,L]
RewriteRule ^forum([0-9]+)(/?)+$ index.php?go=groups_forum&public_id=$1 [L]
 
# Сообщества -> Публичные страницы
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^public([0-9]+)(/?)+$ index.php?go=public&pid=$1 [L]
 
#RewriteRule ^([^.]+)/?$ index.php?go=public&get_adres=$1 [L]
RewriteRule ^public([0-9]+)(/?)+$ index.php?go=public&pid=$1 [L]
 
 
RewriteRule ^yps /index.php?go=app [L]
        RewriteRule ^kino(/?)+$ /index.php?go=app&act=kino [L]
        RewriteRule ^photoshop(/?)+$ /index.php?go=app&act=photoshop [L]
 
RewriteRule ^settings/function(/?)+$ index.php?go=settings&act=function [L]
 
 
# Short Links for profiles and publics
RewriteRule ^([^.]+)/?$ index.php?go=short_link&link=$1 [L]
 
# Стат страницы
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+).html$ index.php?go=static&page=$1 [L]
 
# Чат
RewriteRule ^chat/(/?)+$ /index.php?go=im_chat [L]
 
# Страницы ошибок
        ErrorDocument 404 /404.php
post-6-0-86410200-1453829540.png
  • Upvote 1
Ссылка на комментарий
Поделиться на другие сайты

 

Замени на

 
DirectoryIndex index.php
AddDefaultCharset windows-1251
 
RewriteEngine On
# Optimize deflate
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript text/css application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
 
 
# Accses in folder
Options All -Indexes
 
# Loading Errors
ErrorDocument 401 /ups/401.php
ErrorDocument 403 /ups/403.php
ErrorDocument 404 /ups/404.php
ErrorDocument 500 /ups/500.php
 
# Отключаем вывод ошибок пользователям
php_flag display_errors off
 
# Регистрация
RewriteRule ^reg/(/?)+$ index.php?go=register [L]
 
# Страница юзера
RewriteRule ^u([0-9]+)(/?)+$ index.php?go=profile&id=$1 [L]
RewriteRule ^u([0-9]+)after(/?)+$ index.php?go=profile&id=$1&after=1 [L]
 
# Редактирование страницы
RewriteRule ^editmypage(/?)+$ index.php?go=editprofile [L]
RewriteRule ^editmypage/contact(/?)+$ index.php?go=editprofile&act=contact [L]
RewriteRule ^editmypage/interests(/?)+$ index.php?go=editprofile&act=interests [L]
RewriteRule ^editmypage/all(/?)+$ index.php?go=editprofile&act=all [L]
 
# Альбомы в группах
RewriteRule ^albums-([0-9]+)(/?)+$ index.php?go=groups_albums&uid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/add(/?)+$ index.php?go=groups_albums&act=add&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&aid=$2&page=$3&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/comments(/?)+$ index.php?go=groups_albums&act=all_comments&uid=$1 [L]
RewriteRule ^albums-([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=all_comments&uid=$1&page=$3 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/comments(/?)+$ index.php?go=groups_albums&act=all_comments&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)_([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=groups_albums&act=all_comments&aid=$2&page=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/editphotos/([0-9]+)(/?)+$ index.php?go=groups_albums&act=edit_pos_photos&aid=$2&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/newphotos(/?)+$ index.php?go=groups_albums&act=new_photos&pid=$1 [L]
RewriteRule ^albums-([0-9]+)/newphotos/([0-9]+)(/?)+$ index.php?go=groups_albums&act=new_photos&page=$2&pid=$1 [L]
        
# Просмотр фото в группах
RewriteRule ^photo-([0-9]+)_([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups_albums&act=view&pid=$1&aid=$3 [L]        
 
# Альбомы
RewriteRule ^albums/([0-9]+)(/?)+$ index.php?go=albums&uid=$1 [L]
RewriteRule ^albums/add/([0-9]+)(/?)+$ index.php?go=albums&act=add&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$1&page=$2 [L]
RewriteRule ^albums/comments/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&uid=$1 [L]
RewriteRule ^albums/comments/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&uid=$1&page=$2 [L]
RewriteRule ^albums/view/([0-9]+)/comments/(/?)+$ index.php?go=albums&act=all_comments&aid=$1 [L]
RewriteRule ^albums/view/([0-9]+)/comments/page/([0-9]+)(/?)+$ index.php?go=albums&act=all_comments&aid=$1&page=$2 [L]
RewriteRule ^albums/editphotos/([0-9]+)(/?)+$ index.php?go=albums&act=edit_pos_photos&aid=$1 [L]
RewriteRule ^albums/newphotos(/?)+$ index.php?go=albums&act=new_photos [L]
RewriteRule ^albums/newphotos/([0-9]+)(/?)+$ index.php?go=albums&act=new_photos&page=$1 [L]
 
# Просмотр фотографий
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=user_page(/?)+$ index.php?go=profile&id=$1 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=all_comments(/?)+$ index.php?go=albums&act=all_comments&uid=$1 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=wall/fuser=([0-9]+)(/?)+$ index.php?go=profile&id=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=notes/id=([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=news(/?)+$ index.php?go=news [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_sec=msg/id=([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)(/?)+$ index.php?go=albums&act=view&aid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)_sec=album_comments(/?)+$ index.php?go=albums&act=all_comments&aid=$3 [L]
RewriteRule ^photo([0-9]+)_([0-9]+)_([0-9]+)_sec=newphotos(/?)+$ index.php?go=albums&act=new_photos [L]
RewriteRule ^chat /index.php?go=chat [L]
 
# Работа
    RewriteRule ^jobs(/?)+$ index.php?go=jobs [L]
    RewriteRule ^jobs/news_all(/?)+$ index.php?go=jobs&act=news_all [L]
    RewriteRule ^jobs/my_news_jobs/user_id/([0-9]+)(/?)+$ index.php?go=jobs&act=my_news_jobs&user_id=$1 [L]
    RewriteRule ^jobs/news_adds(/?)+$ index.php?go=jobs&act=news_adds [L]
    RewriteRule ^jobs/resume_create(/?)+$ index.php?go=jobs&act=resume_create [L]
RewriteRule ^jobs/news_all/page/([0-9]+)(/?)+$ /index.php?go=jobs&act=news_all&page=$1 [L]
RewriteRule ^jobs/news_wiev_all/id/([0-9]+)(/?)+$ /index.php?go=jobs&act=news_wiev_all&id=$1 [L]
 
# Карту
RewriteRule ^ajax_mapsBox([0-9]+)(/?)$ index.php?go=mapsbox&act=mapsbox&id=$1 [L]
RewriteRule ^ajax_mapsSend([0-9]+)(/?)$ index.php?go=mapsbox&act=send&id=$1
RewriteRule ^maps_travel(/?)+$ index.php?go=mapsbox&act=maps_travel [L]
 
# Потверждение групп пользователя
RewriteRule ^confirmation/confirm_wiev(/?)+$ index.php?go=confirmation&act=confirm_wiev [L]
RewriteRule ^confirmation/confirm_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=confirm_wiev&page=$1 [L]
RewriteRule ^confirmation/verification_wiev(/?)+$ index.php?go=confirmation&act=verification_wiev [L]
RewriteRule ^confirmation/verification_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=verification_wiev&page=$1 [L]
RewriteRule ^confirmation/jobs_wiev(/?)+$ index.php?go=confirmation&act=jobs_wiev [L]
RewriteRule ^confirmation/jobs_wiev/page/([0-9]+)(/?)+$ index.php?go=confirmation&act=jobs_wiev&page=$1 [L]
 
 
# Друзья
RewriteRule ^friedns/send_demand/([0-9]+)(/?)+$ index.php?go=friends&act=send_demand&for_user_id=$1 [L]
RewriteRule ^friedns/take/([0-9]+)(/?)+$ index.php?go=friends&act=take&take_user_id=$1 [L]
RewriteRule ^friedns/reject/([0-9]+)(/?)+$ index.php?go=friends&act=reject&reject_user_id=$1 [L]
RewriteRule ^friends(/?)+$ index.php?go=friends [L]
RewriteRule ^friends/([0-9]+)(/?)+$ index.php?go=friends&user_id=$1 [L]
RewriteRule ^friends/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&user_id=$1&page=$2 [L]
RewriteRule ^friends/online/([0-9]+)(/?)+$ index.php?go=friends&act=online&user_id=$1 [L]
RewriteRule ^friends/online/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&act=online&user_id=$1&page=$2 [L]
RewriteRule ^friends/requests(/?)+$ index.php?go=friends&act=requests [L]
RewriteRule ^friends/requests/page/([0-9]+)(/?)+$ index.php?go=friends&act=requests&page=$1 [L]
RewriteRule ^friends/common/([0-9]+)(/?)+$ index.php?go=friends&act=common&uid=$1 [L]
RewriteRule ^friends/common/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=friends&act=common&uid=$1&page=$2 [L]
 
# Закладки
RewriteRule ^fave(/?)+$ index.php?go=fave [L]
RewriteRule ^fave/page/([0-9]+)(/?)+$ index.php?go=fave&page=$1 [L]
RewriteRule ^miss/([0-9]+)(/?)+$ index.php?go=miss&act=page&id=$1 [L]
    RewriteRule ^miss(/?)+$ index.php?go=miss&act=top [L]
RewriteRule ^mister/([0-9]+)(/?)+$ index.php?go=mister&act=page&id=$1 [L]
    RewriteRule ^mister(/?)+$ index.php?go=mister&act=top [L]
RewriteRule ^tv(/?)+$ index.php?go=tv [L]
RewriteRule ^yps /index.php?go=app [L]
    RewriteRule ^kino(/?)+$ /index.php?go=app&act=kino [L]
    RewriteRule ^photoshop(/?)+$ /index.php?go=app&act=photoshop [L]
# Отзывы
RewriteRule ^review(/?)+$ index.php?go=review [L]
RewriteRule ^review&page=([0-9]+)(/?)+$ index.php?go=review&page=$1 [L]
 
# Заметки
RewriteRule ^notes(/?)+$ index.php?go=notes [L]
RewriteRule ^notes/add(/?)+$ index.php?go=notes&act=add [L]
RewriteRule ^notes/edit/([0-9]+)(/?)+$ index.php?go=notes&act=edit&note_id=$1 [L]
RewriteRule ^notes/view/([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$1 [L]
RewriteRule ^notes/([0-9]+)(/?)+$ index.php?go=notes&get_user_id=$1 [L]
RewriteRule ^notes/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=notes&get_user_id=$1&page=$2 [L]
 
# Видео
RewriteRule ^videos(/?)+$ index.php?go=videos [L]
RewriteRule ^videos/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^videos/([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1&page=$2 [L]
RewriteRule ^videos/([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^video([0-9]+)_([0-9]+)(/?)+$ index.php?go=videos&get_user_id=$1 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=wall/fuser=([0-9]+)(/?)+$ index.php?go=profile&id=$3 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=notes/id=([0-9]+)(/?)+$ index.php?go=notes&act=view&note_id=$3 [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=news(/?)+$ index.php?go=news [L]
RewriteRule ^video([0-9]+)_([0-9]+)_sec=msg/id=([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$3 [L]
 
# Поиск
RewriteRule ^search/query=(.*)&type=([0-3]+)(/?)+$ index.php?go=search&query=$1&type=$2 [L]
 
# Новости
RewriteRule ^news(/?)+$ index.php?go=news [L]
RewriteRule ^news/updates(/?)+$ index.php?go=news&type=updates [L]
RewriteRule ^news/photos(/?)+$ index.php?go=news&type=photos [L]
RewriteRule ^news/videos(/?)+$ index.php?go=news&type=videos [L]
RewriteRule ^news/notifications(/?)+$ index.php?go=news&type=notifications [L]
 
# Сообщения
RewriteRule ^messages(/?)+$ index.php?go=messages [L]
RewriteRule ^messages/i(/?)+$ index.php?go=messages&info=1 [L]
RewriteRule ^messages/outbox(/?)+$ index.php?go=messages&act=outbox [L]
RewriteRule ^messages/show/([0-9]+)(/?)+$ index.php?go=messages&act=review&mid=$1 [L]
 
# Стена
RewriteRule ^wall([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=page [L]
RewriteRule ^wall([0-9]+)/page/([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=page&page=$2 [L]
RewriteRule ^wall([0-9]+)_sec=own(/?)+$ index.php?go=wall&uid=$1&type=own [L]
RewriteRule ^wall([0-9]+)_sec=own&page=([0-9]+)(/?)+$ index.php?go=wall&uid=$1&type=own&page=$2 [L]
RewriteRule ^wall([0-9]+)_([0-9]+)(/?)+$ index.php?go=wall&uid=$1&rid=$2&type=record [L]
 
# Настройки
RewriteRule ^settings(/?)+$ index.php?go=settings [L]
RewriteRule ^settings/privacy(/?)+$ index.php?go=settings&act=privacy [L]
RewriteRule ^settings/blacklist(/?)+$ index.php?go=settings&act=blacklist [L]
RewriteRule ^settings/design(/?)+$ index.php?go=settings&act=design [L]
RewriteRule ^settings/notify(/?)+$ index.php?go=settings&act=notify [L]
 
# Помощь
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)support $1index.php?go=support [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)support $1index.php?go=support [QSA,L]
RewriteRule ^support(/?)+$ index.php?go=support [L]
 
# Воостановление пароля
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)restore $1index.php?go=restore [QSA,L]
RewriteRule ^restore(/?)+$ index.php?go=restore [L]
 
# Блог сайта
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)blog $1index.php?go=blog [QSA,L]
 
RewriteCond %{QUERY_STRING} ^id=([0-9]+)
RewriteRule ^(.*)blog $1index.php?go=blog [QSA,L]
RewriteRule ^blog(/?)+$ index.php?go=blog [L]
 
# UBM
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)balance $1index.php?go=balance [QSA,L]
RewriteRule ^balance(/?)+$ index.php?go=balance [L]
 
# WEBTOMAT
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)webtomat $1index.php?go=webtomat [QSA,L]
RewriteRule ^webtomat(/?)+$ index.php?go=webtomat [L]
 
# Розыгрыши
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)loto $1index.php?go=nonsense [QSA,L]
RewriteRule ^loto(/?)+$ index.php?go=nonsense [L]
 
# Реф. ссылка на регистрацию
RewriteRule ^reg([0-9]+)(/?)+$ index.php?reg=$1 [L]
 
# Подарки
RewriteCond %{QUERY_STRING} ^new=([0-9]+)
RewriteRule ^(.*)gifts([0-9]+) $1index.php?go=gifts&uid=$2 [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)gifts([0-9]+) $1index.php?go=gifts&uid=$2 [QSA,L]
 
RewriteRule ^gifts([0-9]+)(/?)+$ index.php?go=gifts&uid=$1 [L]
 
# Сообщества
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)groups $1index.php?go=groups [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)groups $1index.php?go=groups [QSA,L]
RewriteRule ^groups(/?)+$ index.php?go=groups [L]
 
RewriteRule ^wallgroups([0-9]+)_([0-9]+)(/?)+$ index.php?go=groups&act=wallgroups&pid=$1&id=$2 [L]
 
# Музыка
RewriteRule ^audio(/?)+$ index.php?go=audio [L]
RewriteRule ^audio([0-9]+)(/?)+$ index.php?go=audio&uid=$1 [L]
 
# Документы
RewriteRule ^docs(/?)+$ index.php?go=doc&act=list [L]
 
RewriteRule ^chat /index.php?go=chat [L]
 
# Соц.сети
RewriteRule ^mysocial(/?)+$ index.php?go=social [L]
 
# Игры
RewriteRule ^apps(/?)+$ index.php?go=apps [L]
RewriteRule ^app([0-9]+)(/?)+$ index.php?go=apps&act=start&id=$1 [L]
RewriteRule ^addapp(/?)+$ index.php?go=apps&act=add [L]
 
# Apps
RewriteRule ^game(/?)$ index.php?go=game [L]
RewriteRule ^recomend(/?)$ index.php?go=recomend [L]
RewriteRule ^game/page/([0-9+])(/?)$ index.php?go=game&page=$1 [L]
RewriteRule ^game/([0-9]+)(/?)$ index.php?go=game&about_app=$1 [L,QSA]
 
 
# Сообщества -> Публичные страницы -> Аудио
RewriteRule ^public/audio([0-9]+)(/?)+$ index.php?go=public_audio&pid=$1 [L]
 
# Сообщества -> Публичные страницы -> Видео
RewriteRule ^public/videos([0-9]+)(/?)+$ index.php?go=public_videos&pid=$1 [L]
 
# Моя реклама
RewriteRule ^mybanners(/?)+$ index.php?go=mybanners [L]
 
# Сообщества -> Публичные страницы -> Обсуждения
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^(.*)forum([0-9]+) $1index.php?go=groups_forum&public_id=$2 [QSA,L]
 
RewriteCond %{QUERY_STRING} ^page=([0-9]+)
RewriteRule ^(.*)forum([0-9]+) $1index.php?go=groups_forum&public_id=$2 [QSA,L]
RewriteRule ^forum([0-9]+)(/?)+$ index.php?go=groups_forum&public_id=$1 [L]
 
# Сообщества -> Публичные страницы
RewriteCond %{QUERY_STRING} ^act=([a-z]+)
RewriteRule ^public([0-9]+)(/?)+$ index.php?go=public&pid=$1 [L]
 
#RewriteRule ^([^.]+)/?$ index.php?go=public&get_adres=$1 [L]
RewriteRule ^public([0-9]+)(/?)+$ index.php?go=public&pid=$1 [L]
 
 
RewriteRule ^yps /index.php?go=app [L]
        RewriteRule ^kino(/?)+$ /index.php?go=app&act=kino [L]
        RewriteRule ^photoshop(/?)+$ /index.php?go=app&act=photoshop [L]
 
RewriteRule ^settings/function(/?)+$ index.php?go=settings&act=function [L]
 
 
# Short Links for profiles and publics
RewriteRule ^([^.]+)/?$ index.php?go=short_link&link=$1 [L]
 
# Стат страницы
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+).html$ index.php?go=static&page=$1 [L]
 
# Чат
RewriteRule ^chat/(/?)+$ /index.php?go=im_chat [L]
 
# Страницы ошибок
        ErrorDocument 404 /404.php

пошло

Ссылка на комментарий
Поделиться на другие сайты

Гость
Эта тема закрыта для публикации ответов.
×
×
  • Создать...