1
我想URL转换像subdomain.domain.fr到domain.fr/index.php/subdomain 我试图与htaccess的:重定向子域名查询参数
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule^http://%1%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^([^\.]+)\.domain.fr$ [NC]
RewriteRule ^(.*)$ /index.php/%1 [L,QSA]
</IfModule>
有了这个,我的网站响应与domain.fr,但我得到一个内部服务器错误subdomain.domain.fr
任何想法我做错了什么?
你解决了它!谢谢:) – VeZoul
不客气,很高兴它解决了。 – anubhava