죄송한데 .htaccess 한번만 더 질문할드릴께요;; ㅠㅠ 정보
죄송한데 .htaccess 한번만 더 질문할드릴께요;; ㅠㅠ본문
PHP_FLAG register_globals ON
PHP_VALUE mysql.default_charset UTF8
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.[_0-9a-zA-Z]+)?$ /$1 [L]
RewriteRule ^(.[_0-9a-zA-Z]+)@([0-9a-zA-Z./~?&=_]+)/?$ /admin/admin/$1.php/$2 [L]
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=275932
위 답변을 보고 위의 코드처럼 만들긴했는데요;;
위에처럼 설정하면 www.test.com/index@view 이라고 접속하면 www.test.com/admin/admin/index.php?viwe 파일을 불러와서 어느정도 성과는 있다고생각했는데요;;
문제는 www.test.com/index@view가 아니라 www.test.com/index 로 접속하면
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ----------@----------.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
이런 오류가 뜬다는겁니다;; ㅠㅠ
솔직히 www.test.com/index@view 이렇게 접속할 필요는 없어서;;
요약
www.test.com/admin/index?viwe 이렇게 접속하면 www.test.com/admin/admin/index.php?viwe 이 내용을 표시하게 수정하고 싶은데 어떻게 해야할까요??;;
PHP_VALUE mysql.default_charset UTF8
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.[_0-9a-zA-Z]+)?$ /$1 [L]
RewriteRule ^(.[_0-9a-zA-Z]+)@([0-9a-zA-Z./~?&=_]+)/?$ /admin/admin/$1.php/$2 [L]
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=275932
위 답변을 보고 위의 코드처럼 만들긴했는데요;;
위에처럼 설정하면 www.test.com/index@view 이라고 접속하면 www.test.com/admin/admin/index.php?viwe 파일을 불러와서 어느정도 성과는 있다고생각했는데요;;
문제는 www.test.com/index@view가 아니라 www.test.com/index 로 접속하면
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, ----------@----------.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
이런 오류가 뜬다는겁니다;; ㅠㅠ
솔직히 www.test.com/index@view 이렇게 접속할 필요는 없어서;;
요약
www.test.com/admin/index?viwe 이렇게 접속하면 www.test.com/admin/admin/index.php?viwe 이 내용을 표시하게 수정하고 싶은데 어떻게 해야할까요??;;
댓글 전체
RewriteRule ^([a-z]+)/([a-z]+)?([a-z]+)$ /admin/$1/ [L]
알려주신대로 하니 www.test.com/list_view_1?viwe 로 접속하면 Not Found 가 뜨네요;;