|
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
|
|
 |
|
 |
|
يمكن يطلعلك خطأ 500 ، و في هذه الحالة ، غالباً يكون الأوبشن مفعل سلفاً ، فتصبح صيغة التحويل لديك :
كود:
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]