Subdomain htaccess issue in Magento

若如初见. 提交于 2019-12-02 14:14:50

问题


public_html/                    # www.domain.com
public_html/subdomain             # subdomain.domain.com
public_html/.htaccess
public_html/subdomain/.htaccess

I have a subdomain subdomain.domain.com

I have .htaccess file under public_html

This htaccess file contains this code:

Options -MultiViews

RewriteEngine On
RewriteBase /

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

I need to install magento inside subdomain folder

.htaccess file inside this folder is:

<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>

Magento Installed successfully, But I am facing a problem:

http://subdomain.domain.com/admin (this url works)

but when I hit http://subdomain.domain.com/index.php/admin its shows "No input file specified."

All internal URLs in admin are also throwing same error.

Please help me what wrong I put in my htaccess

Thanks in advance.

来源:https://stackoverflow.com/questions/21458884/subdomain-htaccess-issue-in-magento

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!