Php Magento中的子域访问问题

Php Magento中的子域访问问题,php,apache,.htaccess,magento,subdomain,Php,Apache,.htaccess,Magento,Subdomain,我有一个子域名subdomain.domain.com 我在public_html下有.htaccess文件 此htaccess文件包含以下代码: public_html/ # www.domain.com public_html/subdomain # subdomain.domain.com public_html/.htaccess public_html/subdomain/.htaccess 我需要在子域文件夹中安装mag

我有一个子域名subdomain.domain.com

我在public_html下有.htaccess文件

此htaccess文件包含以下代码:

public_html/                    # www.domain.com
public_html/subdomain             # subdomain.domain.com
public_html/.htaccess
public_html/subdomain/.htaccess
我需要在子域文件夹中安装magento

此文件夹中的.htaccess文件是:

Options -MultiViews

RewriteEngine On
RewriteBase /

ReWriteCond %{HTTP_HOST} ^subdomain\.domain\.com$
ReWriteCond %{REQUEST_URI} !^/subdomain/
ReWriteRule ^(.*)$ /subdomain/$1

重新启动发动机
重写规则^index\.php$-[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$/index.php?/$1[L,QSA]
Magento安装成功,但我面临一个问题:

(此url有效)

但当我点击它时,显示“未指定输入文件”

admin中的所有内部URL也会引发相同的错误

请帮帮我,我把什么错放在我的电脑里了


提前感谢。

但为什么要使用更长的URL而不是更短的URL?因为我在谈论magento,在magento管理部分,所有内部URL都使用“index.php”。这就是为什么我发布了带有index.phpRight的url,但目标应该始终是使用更短的更干净的url,并且您目前已经得到了。更长时间的一次尝试:
http://subdomain.domain.com/index.php?admin
这是我客户的要求。如果mod_rewrite为“off”,则在URL中添加index.php。如果将.htaccess重命名为其他名称,那么更长的URL是否有效?
<IfModule mod_rewrite.c>

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

</IfModule>