Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- println
- FileSystemObject
- form
- jQuery
- readonly
- AC1300
- 커널
- 무선랜카드
- submit
- replace
- 따라다니는 배너
- ajax
- RTL88x2BU
- javascript
- utf-8
- PHP GCM
- include
- ASP
- Injection
- euc-kr
- lsusb
- XMLHTTP
- Getrows
- disabled
- SQL Injection
- DS718+
- 시놀로지
- jquery 레이어
- 크로스 컴파일
- synology
Archives
- Today
- Total
아는 것이 좋은 것이다.
[PHP] 코드이그나이터 index.php 삭제하기 본문
1.루트권한
sudo a2enmod rewrite
2./etc/apache2/apache2.conf
<IfModule mod_rewrite.c>
rewriteEngine On
</IfModule>
3./etc/apache2/sites-enabled/000-default 수정
<Directory /webhosting>
AllowOverride All (기본값 done, All로 설정해야 사용가능)
Order allow,deny
Allow from all
</Directory>
4. 코드이그나이터 최상위 루트에 .htaccess 파일 수정 혹은 없을시 생성
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
5. sudo /etc/init.d/apache2 restart
'PHP' 카테고리의 다른 글
[PHP] 배열에 값 추가 (0) | 2015.03.17 |
---|---|
[PHP] 페이지내의 모든 변수를 표시 (0) | 2015.03.16 |
[PHP] 코드이그나이터 마지막으로 사용한 쿼리 출력 (0) | 2015.02.10 |
[PHP] GCM 푸시 예제 소스(2) (0) | 2014.07.19 |
[PHP] 배열출력하기, 배열 확인하기 (0) | 2014.07.18 |
Comments