.htaccess别名,但不重定向
我有一个CMS(混凝土5),我已经打开了“好网址” 比如说,,.htaccess别名,但不重定向,.htaccess,alias,concrete5,.htaccess,Alias,Concrete5,我有一个CMS(混凝土5),我已经打开了“好网址” 比如说,, http://www.mydomain.at/test/是dir/var/www/user1/www.mydomain.at/index.php?cid=1中的http://www.mydomain.at/index.php/ 现在我想使用移动模板 http:/ /mobile.mydomain.at/test/mobile-version/ in dir /var/www/user1/mobile.mydomain.at/ 这应
http://www.mydomain.at/test/
是dir/var/www/user1/www.mydomain.at/index.php?cid=1中的http://www.mydomain.at/index.php/
现在我想使用移动模板
http:/ /mobile.mydomain.at/test/mobile-version/ in dir /var/www/user1/mobile.mydomain.at/
这应该是http://www.mydomain.at/test/mobile version/
我不想重定向,它应该是一个别名
请帮助-启用
Mod_Proxy
,然后将这些行添加到移动版本文件夹中的.htaccess
,然后执行以下操作:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mobile\.mydomain\.at$ [NC]
RewriteRule (.+)$ http://www.mydomain.at/$1 [L,P]