1
我有以下的网站结构htaccess的重定向时,链接不包含字符串
- root
- de/index.htm
- en/index.htm
当用户请求的网站,并没有定义像
mysite.com
,而不是
mysite.com/en/
语言
我希望他被重定向到en文件夹。因为根文件夹实际上不包含任何文件。我不太熟悉Apache重写规则。这是我试过的
RewriteEngine On
RewriteBase/
RewriteCond RewriteCond %{REQUEST_URI}/
RewriteRule ^/en/index.htm
但是这不起作用。任何想法如何解决这个问题?
大这个工程。谢谢! –