2015-05-04 73 views
0

我嘗試刪除網站到另一個域名。在新的域名網站位於一個子文件夾,我有htacces問題在我的舊域mydomain.com刪除網站到另一個域名

htacces

RewriteEngine on 
RewriteCond $1 !^(index\.php|public|media|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

新站點位置是mydomain.com/site/

鏈接到頁面和圖像不好。

回答

1

如果它在子文件夾中,您需要添加rewritebase。確保.htaccess也在/site/.htaccess

RewriteEngine on 
RewriteBase /site/ 
RewriteCond $1 !^(index\.php|public|media|robots\.txt) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 
+0

非常感謝。而已。 – BCM