我在我的主機上設置了URL重定向 - 但它不工作。 我htaccess的樣子現在這個重定向到子文件夾
rewriteengine on
rewritecond %{HTTP_HOST} ^.*$
rewriterule ^http:\/\/www\.bangkoksoftball\.info "http\:\/\/www\.bangkoksoftball\.info\/wordpress" [R=301,L] #4d3a8d4534e567
我想要的是http://www.bangkoksoftball.info的任何請求重定向到http://www.bangkoksoftball.info/wordpress/
但是任何請求的路徑文件或目錄關閉根不被重定向
這樣人們仍然可以通過/home.html或index.html等訪問舊網站,並仍然能夠在wordpress文件夾外導航
你的意思是用我的整個htaccess取代? – asiaexpat 2011-04-08 16:24:17
他正在嘗試將請求重定向到'/'到'/ wordpress /',而不是所有的請求到'/ phpMyAdmin /' – Wige 2011-04-08 16:28:57
@Wige他說他想從http://www.bangkoksoftball.info重定向到http: //www.bangkoksoftball.info/wordpress/。 @asiaexpat,是的。 – SIFE 2011-04-08 16:44:28