본문 바로가기

htaccess

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.. 더보기
php_value 값 설정하기 apache 설정을 바꾸지 않더라도 .htaccess 파일을 사용한다면 여기에 설정을 넣어줄 수 있음. upload_max_filesize 이러한 변수들은 ini_set 함수를 사용해서 설정을 해줄수가 없음. http://php.net/manual/en/ini.list.php - ini 설정값들http://php.net/manual/en/configuration.changes.modes.php - 설정값 변경해줄 위치들 upload_max_filesize 값의 경우 PHP_INI_PERDIR 에 속하기 때문에"Entry can be set in php.ini, .htaccess, httpd.conf or .user.ini (since PHP 5.3)"php.ini .htaccess httpd.conf ... 더보기
[PHP] query string을 통해서 정상적으로 파라미터가 전달되지 않을때 Codeigniter 사용으로 인해 .htaccess에서 rewrite를 설정하는 경우에 REQUEST_URI는 정상적으로 전달이 되는데QUERY_STRING이 전달이 되지 않는 경우가 있음. 이럴 때는 .htaccess에서 RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]위처럼 사용해주면 전달 되는 경우를 확인함. 여기서 QSA 옵션을 추가해준건데...이는 Query String Append 라고함. 정확한 원인은 파악이 아니됨. 더보기