오늘: 6|어제: 21|전체: 233,801|회원: 118 (+0)|문서: 56,040 (+0)|댓글: 8,019 (+0)|첨부파일: 1,389 (+0)


Nginx
2014.07.25 05:37

NGINX wordpress rewrite

조회 수 1601 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
?

단축키

Prev이전 문서

Next다음 문서

+ - Up Down Comment Print
Extra Form

conf 폴더에 wordpress.conf 를 만듭니다. 내용은 아래와 같이 추가

# enforce NO www
    if ($host ~* ^www\.(.*))
    {
        set $host_without_www $1;
        rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent;
    }
 
    # canonicalize codeigniter url end points
    # if your default controller is something other than "welcome" you should change the following
    if ($request_uri ~* ^(/welcome(/index)?|/index(.php)?)/?$)
    {
        rewrite ^(.*)$ / permanent;
    }
 
    # removes trailing "index" from all controllers
    if ($request_uri ~* index/?$)
    {
        rewrite ^/(.*)/index/?$ /$1 permanent;
    }
 
    # removes trailing slashes (prevents SEO duplicate content issues)
    if (!-d $request_filename)
    {
        rewrite ^/(.+)/$ /$1 permanent;
    }
 
    # removes access to "system" folder, also allows a "System.php" controller
    if ($request_uri ~* ^/system)
    {
        rewrite ^/(.*)$ /index.php?/$1 last;
        break;
    }
 
    # unless the request is for a valid file (image, js, css, etc.), send to bootstrap
    if (!-e $request_filename)
    {
        rewrite ^/(.*)$ /index.php?/$1 last;
        break;
    }


워드프레스가 설치되는 도메인의 하단 } 위에 include /경로/wordpress.conf; 추가 하시면 됩니다.



List of Articles
글쓴이 분류 제목 조회 수
가온누리 Etc 후딱빌더(그누보드) cheditor5에서 사진 첨부 했을때 오류 수정 file 13450
YJSoft PHP 함수() or die("")? 2 2986
YJSoft Etc 하위 도메인에 티스토리/네이버 블로그 연결 file 3425
merkava Etc 퓨니코드 변환하기 711
YJSoft Etc 편집기 사용시 팁 1989
cholalo Windows 파이어폭스 캐쉬 초기화하는 방법 file 3572
Luatic™ Windows 티밍이란? 4 4885
Luatic™ Windows 크롬에서 DNS 캐시 초기화하기 2514
YJSoft™ Windows 크롬 버전 37 업데이트 이후 영어 글자 간격이 이상하다면 2 file 2166
Luatic™ WebServer 크로스 브라우징을 위한 테스트 사이트 file 1040
Luatic™ MySQL 자주 쓰는 MySQL 명령어 정리 2298
루아틱 PHP 인덱스가 비어있을때.. 즉 public_html 하위에 빌더 또는 보드 설치시.. 1 2080
고객지원 XpressEngine 유튜브와 같은 영상 쉽게 올리기. file 1782
루아틱 Etc 윈도우 사용자 dns 캐시 초기화 명령 1 6630
Omega3 Etc 웹페이지 가속 기술인 모드 페이지스피드(mod_pagespeed)를 이용한 순수한 속도 향상 3705
루아틱 Linux 웹소스 euc-kr 에서 utf-8 일괄변환(find, iconv 이용) 14813
Luatic™ WordPress 워드프레스 최적화 #1 (작성중) 2 487
merkava WordPress 워드프레스 최적화 1097
Luatic™ WordPress 워드프레스 주소 변경 방법 file 859
Luatic™ WordPress 워드프레스 속도, 성능 최적화하기 file 1780
Board Pagination ‹ Prev 1 2 3 4 5 6 Next ›
/ 6

처음