我想讓img.cetinblog.com像cetinblog.com/feedimg/一樣行事。我使用的代碼,但網址正在改變。我不想對網址進行任何更改。從子域重定向到沒有URL更改的文件夾
htaccess的代碼
RewriteEngine On
Options Indexes FollowSymlinks Multiviews
RewriteBase/
RewriteCond %{HTTP_HOST} img.cetinblog.com
RewriteCond %{REQUEST_URI} ^/(.+)$
RewriteRule ^(.*)$ http://cetinblog.com/feedimg/$1 [L]
問題出在哪裏?謝謝。
編輯: http://img.cetinblog.com/zombi.jpg應重定向http://cetinblog.com/feedimg/zombi.jpg但我有一些問題。
都是域共享相同的'DocumentRoot'? – anubhava
我不知道,但是當我發送到郵件服務器指向子文件夾到文件夾時,他們說;我們不能這樣做,但你可以用htaccess來做。我認爲它應該是。 – Ayro
不應該這樣做。可以從http://img.cetinblog.com/ –