|
При вставке в .htaccess редиректа 301
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.teplogen\.com\.ua$ [NC]
RewriteRule ^(.*)$ teplogen.com.ua/$1 [R=301,L]
сайт "падает", в чем проблема, подскажите?
|
|
Побило текст в самом правиле редиректа при вставке на форум, попробуйте обернуть его тегом, к примеру, bash.
По сути, если "падает", обычно причина в циклической переадресации. Но тут нужно увидеть, что у вас в последнем правиле.
|
|
Замените
на
Options +SymLinksIfOwnerMatch
и проверьте работу сайта после этого.
|
|
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, kucheravui190276@rambler.ru and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log. После смены options
|
|
RewriteRule ^(.*)$ http://teplogen.com.ua/$1 [R=301,L] Последнее правило
|
|
Получилось вот так
#Options +SymLinksIfOwnerMatch RewriteEngine On RewriteCond %{HTTP_HOST} ^www.teplogen\.com\.ua$ [NC] RewriteRule ^(.*)$ http://teplogen.com.ua/$1 [R=301,L]
|