Показать сообщение отдельно

  #2  
Старый 24.01.2010, 12:46
Solker
Участник форума
Регистрация: 04.05.2006
Сообщений: 161
Провел на форуме:
389768

Репутация: 158
По умолчанию

1. mod_rewrite

Options +FollowSymLinks
RewriteEngine on
RewriteCond {HTTP_HOST} ^yourdomain.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]

Дописать в файл .htaccess

2. Apache Redirect

Redirect 301 / http://www.yourdomain.com/

Дописать все в тот же файл .htaccess

3. PHP

header(“HTTP/1.1 301 Moved Permanently”);
header(“Location: http://www.newdomain.com/newdir/newpage.htm”);
exit();

http://www.highrankings.com/forum/index.php?showtopic=5644 (c) full article

Последний раз редактировалось Solker; 24.01.2010 в 12:48..
 
Ответить с цитированием