Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
var_dump($_SERVER);
RewriteEngine on RewriteRule ^category$ /categoria [R=301,L] RewriteRule ^category/product$ /categoria/tovar [R=301,L] RewriteRule ^info$ /informatcia [R=301]
DirectoryIndex index.html
RewriteEngine on RewriteCond %{QUERY_STRING} ^category=[0-9]+$ RewriteRule ^$ /?
RewriteEngine on RewriteRule ^yd/(.*?)$ /$1
RewriteEngine on RewriteCond %{QUERY_STRING} ^id=([0-9]+)$ RewriteRule ^blog.php$ /blog%1?
RewriteEngine on RewriteCond %{HTTP_HOST} ^sub.domen.ru$ RewriteRule ^upload/(.*?)$ http://domen.ru/upload/$1
RewriteCond %{QUERY_STRING} ^(page=2)/$ RewriteRule ^news?$ /news?%1 [L,R=301]
RewriteCond %{QUERY_STRING} ^id=2$ RewriteRule ^index.php$ http://newsite.ru/catalog? [L,R=301]
RewriteRule ^category/(.*?)/page/([0-9]+)/$ index.php?module=module_name&class=category&name=$1&page=$2 [L]
RewriteEngine on RewriteCond %{QUERY_STRING} ^uid.*?ru$ [NC] RewriteRule ^icq\/validate\.html$ /index.php?
RewriteCond %{HTTP_HOST} ^admin RewriteRule . http://example.com/admin.php[L]
RewriteRule ^(.*?)prodact(.*?) $1product$2 [R=301]
RewriteRule ^catalog/prodact(.*?) /catalog/product$1 [R=301]
ErrorDocument 404 /404
RewriteEngine on RewriteRule .* new-domain.com