워드프레스 하위폴더로 이전했을때 문제.

가령 워드프레스 사용중 http://호두과자.com 에서 http://후두과자.com/맛있어 로 경로를 이전하려면 데이터 이동과 DB 수정외 한가지 작업을 더 해줘야된다.

아니면
not foundthe requested url /index.php was not found on this server. wordpress
이런 메세지가 뜨게된다.

워드프레스가 index.php 폴더가 최상위에 있는걸로 인식하고 있어서 생기는 문제인데,
워드프레스가 옮겨진 폴더에 .htaccess 파일을 만들어 이 코드를 넣으면된다.


# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

뭔가 문제가 있을땐 역시 기술문서를 보는게 짱이다.
여기뜸.
http://codex.wordpress.org/ko:Using_Permalinks

Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
모든 댓글 보기
0
생각을 나눠주시면 감사해요!x
()
x
Please enter Google Username or ID to start!
Example: clip360net or 116819034451508671546
Title
Caption
File name
Size
Alignment
Link to
  Open new windows
  Rel nofollow