Develop/CodeIgniter 썸네일형 리스트형 Codeigniter + Vue When you need to use Vue.js(Nuxt) on codeigniter, there is no default way on codeigniter.So I solve this problem with .htaccess file. The main concept is just share one root folder.And basically, this concept is for separate frontend and backend. Codigniter for Backend. Vue.js for Frontend. Like this.Project |- application |- frontend (Vuejs) |- system |- web |- index.php |- composer.json |- pac.. 더보기 [CodeIgniter] Rewirte Rule RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] application과 같은 레벨에 .htaccess 생성해서 작성해줌.이때 아파치에서 AllowOverride 옵션이 켜져있어야함. 더보기 [CodeIgniter]index.php 없애기. 아파치 vhost 잡아주는 부분에서 RewriteEngine On RewriteCond $1 !^(index\.php|/asset/*|/images/*|/js/*|/css/*|robots\.txt|/favicon\.ico) RewriteRule ^(.*)$ /index.php/$1 [L] 추가해줄것! + mod_rewrite를 해줄경우에 CI에서도 자체적으로 추가해줄 부분이 있음. system/core/URI.php파일내에서 if (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0) { $uri = substr($uri, strlen($_SERVER['SCRIPT_NAME'])); } elseif (strpos($uri, dirname($_SERVER['SCRIPT_NAME'.. 더보기 이전 1 2 다음