在.htaccess文件中写入以下代ç ï¼ˆå¦‚果没有此文件å¯è‡ªå·±åˆ›å»ºï¼‰ï¼š

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

红色部分修改为您自己的域åå³å¯ï¼Œå¦‚æžœ.htacess文件中å‰ä¸¤è¡Œå·²ç»å­˜åœ¨ï¼Œå°±åªæ·»åŠ æœ€åŽä¸¤è¡Œä»£ç ã€‚

Was this answer helpful? 483 Users Found This Useful (713 Votes)