0
我有網站,對根我有htacess文件和兩個文件夾(blog->WP,shop->Magento)
。 我的目錄結構是這樣的root (htaccess,other files,blog,shop)
。這是我的htaccess代碼根htaccess的規則,不能正常工作
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$
RewriteRule ^(.*)$ "http\:\/\/www\.example\.com\/$1" [R=301,L]
它與example.com and example.com/blog ->for WP and example.com/shop-> for Magento
這些網址的作品。但現在我轉移到新的域名,並將網站轉換爲IP基地。我想要訪問我的網站,如192.168.2.36
。如果我改變以上htaccess代碼與IP它只適用於家庭,內心它給錯誤。請幫助我如何解決這個問題。我想訪問我的網站,如IP/blog,IP/shop
這是否適用於其他文件夾,例如博客? – Adda