2015-02-03 3 views
0

Magento를 mydomain.com/magento에 내 사이트에 설치했습니다. 이 디렉토리에 계속 머물게되어 만족 스럽지만 사람들이 직접 사이트를 방문하면 (예 : mydomain.com) Magento 폴더를 열어주세요. 어떻게해야합니까?홈 URL을 Magento 폴더로 리디렉션

대단히 감사합니다.

+0

당신의 설정에 대해 아무것도 모른 채, 그것은 당신에게 정확한 조언을 제공하기 어렵지만, URL로 리디렉션 검색 당신에게 좋은 출발을 줄 것입니다. – Slime

답변

1

Magento를 설치 한 디렉토리로 "mydomain.com"을 서버로 리디렉션해야합니다. 당신이 아파치를 사용하는 경우 아래의 httpd.conf에 하나 같이 가상 호스트를 추가 할 수 있습니다

<VirtualHost *:80> 
ServerName mydomain.com 
DocumentRoot "/yourpath/magento" 
CustomLog "/tmp/access_log" common 
LogLevel debug 
ErrorLog "/tmp/error.log" 

<Directory "/yourpath/magento"> 
    Options FollowSymLinks Multiviews Indexes 
    MultiviewsMatch Any 
    # Rewrites to allow links 
    RewriteEngine On 
    RewriteBase/
    RewriteRule ^index\.php$ - [L] 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule . /index.php [L] 
    # We are not allowing any directive contained in a .htaccess file 
    AllowOverride None 
    # We grant all permissions 
    Require all granted 
</Directory>  

+0

조언 해 주셔서 감사합니다. 죄송합니다. 매우 익숙합니다. 도메인 FTP의 루트에 해당 파일이 있습니까? – YorkieMagento

관련 문제