최근에 내 하위 도메인에서 내 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]\
나는 떨어져이에있을 수 있습니다 시도,하지만 난 당신이에 htaccess로 편집 할 수도있을 것 같군요 새 경로를 기본 경로로 만드십시오. –
@AndrewP. 더 설명 해주십시오. – user3968645
[this] (https://stackoverflow.com/questions/1397014/how-do-i-write-a-htaccess-file-to-make-codeigniters-url-routing-work) 질문을 참조하십시오. –