2014-10-11 2 views
0

최근에 내 하위 도메인에서 내 codeigniter 응용 프로그램을 하위 도메인으로 이동했습니다. 나는 그것이 찾을 수없는 페이지의 URL과 결과에서 /account을 제거 /invoices처럼 아무것도 액세스하려고하면 지금Codeigniter Installation Moved

https://mywebsitehere.com/account 

:

https://account.mywebsitehere.com 

사람 :

기본적으로 내가에서 이동. 구성 파일에서 기본 URL을 변경했지만 여전히이 오류가 발생합니다.

전체 애플리케이션을 수행하고 모든 링크를 변경하는 것 외에도 /account/... URL에서 /account으로 애플리케이션을 작동 시키려면 어떻게해야합니까? 다음과 같이 public_html/panda/.htaccess에있는

.htaccess 파일은 다음과 같습니다

RewriteEngine on 
RewriteCond $1  
!^(index\.php|robots\.txt|files\/images|files\/css|files\/js|files\/swf|files\/upload) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L] 

RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://mywebsitehere.com/panda/$1 [R,L]\ 
+0

나는 떨어져이에있을 수 있습니다 시도,하지만 난 당신이에 htaccess로 편집 할 수도있을 것 같군요 새 경로를 기본 경로로 만드십시오. –

+0

@AndrewP. 더 설명 해주십시오. – user3968645

+0

[this] (https://stackoverflow.com/questions/1397014/how-do-i-write-a-htaccess-file-to-make-codeigniters-url-routing-work) 질문을 참조하십시오. –

답변

0

은 htaccess로 파일에 그 코드를 삽입하고

RewriteEngine On 
RewriteBase /account/ 
RewriteCond %{REQUEST_URI} ^system.* 
RewriteCond $1 !^(index\.php|images|js|uploads|css|robots\.txt) 
RewriteRule ^(.*)$ /index.php/$1 [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L] 
+0

방문/송장을 참조 할 때 여전히/account /를 덤프합니다 – user3968645

+0

변경 $ config [ 'base_url'] = ""; 그렇지 않은 경우. –

0

첫째, 루트 디렉토리에 이미지를 업로드하고 브라우저에서 액세스 할 수 있는지 확인합니다. 액세스 할 수없는 경우 서버의 구성과 .htaccess 파일을 확인하십시오. 에 base_url을 변경

+0

?? 내 디렉토리에 액세스 할 수 있습니다 .... – user3968645

+0

화면을 인쇄 할 수 있습니까? –

1

시도 :

$config['base_url'] = 'https://mywebsitehere.com/account'; 
+0

위의 질문에서와 마찬가지로 이미이 작업을 수행했습니다. :) – user3968645

+0

@user3968645 .htaccess 파일 (숨김 파일)로 질문을 업데이트하십시오 – VeeeneX