안녕하세요!

 

현재, 서버를 임대하여 사이트를 제작중이고.. 

환경은,

 

PHP : 5.6.34

아파치  :   Apache/2.2.15 (CentOS)

XE : 1.8.7

 

을 사용하고 있습니다.

 

rewrite 모드 설치 오류가 있었는데, 우선 설치하여 사용하는 중에

짧은 주소 << 기능을 사용할 수가 없더라구요.

(짧은 주소 기능 체크하면, 도메인/짧은주소명 << 으로 접속하면 에러페이지가 뜸)

 

호스팅사 측에 여쭤봤지만, rewrite 모드는 설정이 되어 있는 상태라고 하시고

저는 이런... 서버, PHP 관련은 전혀 모르는 무식자라 XE 공홈 등에 검색 해봤지만 알 수가 없어 질문을 드려 봅니다.

 

 

(위의 환경 내용으로 부족하다면 댓글 부탁 드릴게요 8ㅅ8)

 

이런 경우의 해결 방법이 있나요? 아니면 짧은 주소 기능을 그냥 포기해야 하는 상황일까요~?

 

 

  • ?

    혹시 설치후에 xe 폴더를 옮기지 않으셨나요? xe 폴더내에 데이터를 옮기셨다면 안에 있는 데이터가 제대로 옮겨지지 않았을 가능성이 있습니다.

  • ? profile
    아니요. XE 폴더 자체 옮긴 적 없습니다. root 내에 바로 직 설치 했어요~
  • ?
    .htaccess파일에 문제있는게 아닐까요 ~ㅅ~
  • ? profile
    어떤 문제일까요? 8ㅅ8
  • profile
    서버에 rewrite 모드가 설정되어 있다면
    XE 또는 라이믹스의 아파치 rewrite rules 이 적용 되었는지 확인 하시면 될 듯 하네요.
  • profile profile

    rewrite rules 적용 확인은 어떻게 할 수 있을까요? 8ㅅ8 만약, 서버 상의 rewrite mod 설치에 관한 내용이라면, 본문에 호스팅 사에서는 설치 적용 되어 있다고 확인시켜 주셨습니다.

  • profile profile
    라라펠님께서 말씀하신 htaccess에 rewrite rules 이 제대로 적용 되었는지 확인이 필요해 보이네요.
  • profile profile
    RewriteEngine On

    # reserve XE Layout Template Source File (*.html)
    RewriteRule ^(layouts|m.layouts)/(.+)\.html$ - [L,F]
    # reserve XE Template Source Files (*.html)
    RewriteCond %{REQUEST_URI} !/modules/editor/
    RewriteRule /(skins|m.skins)/(.+)\.html$ - [L,F]


    이걸 말씀하시는 걸까요~?
  • profile
    RewriteEngine On

    # deny access to files that may contain sensitive information
    RewriteRule ^(.*/)?\.(editor|git|ht|jshint|travis) - [L,F]
    RewriteRule ^(codeception(.*)\.yml|composer(.*)\.(json|lock)|package\.json)$ - [L,F]
    RewriteRule ^files/(attach|config|cache/store)/.+\.php$ - [L,F]
    RewriteRule ^files/(env|member_extra_info/(new_message_flags|point))/ - [L,F]

    # reserve XE Layout Template Source File (*.html)
    RewriteRule ^(layouts|m.layouts|files/faceOff)/(.+)\.html$ - [L,F]
    # reserve XE Template Source Files (*.html)
    RewriteCond %{REQUEST_URI} !/modules/editor/
    RewriteRule /(skins|m.skins)/(.+)\.html$ - [L,F]

    # conf, query, schema
    RewriteRule ^(modules|addons|widgets)/(.+)/(conf|queries|schemas)/(.+)\.xml$ ./index.php [L]

    # static files
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^(.+)/files/(member_extra_info|attach|cache|faceOff)/(.*) ./files/$2/$3 [L]
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^(.+)/(files|modules|widgets|widgetstyles|layouts|m.layouts|addons)/(.*) ./$2/$3 [L]

    # rss , blogAPI
    RewriteRule ^(rss|atom)$ ./index.php?module=rss&act=$1 [L]
    RewriteRule ^([a-zA-Z0-9_]+)/(rss|atom|api)$ ./index.php?mid=$1&act=$2 [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/(rss|atom|api)$ ./index.php?vid=$1&mid=$2&act=$3 [L]

    # trackback
    RewriteRule ^([0-9]+)/(.+)/trackback$ ./index.php?document_srl=$1&key=$2&act=trackback [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?mid=$1&document_srl=$2&key=$3&act=trackback [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?vid=$1&document_srl=$2&key=$3&act=trackback [L]
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)/(.+)/trackback$ ./index.php?vid=$1&mid=$2&document_srl=$3&key=$4&act=trackback [L]

    # document permanent link
    RewriteRule ^([0-9]+)$ ./index.php?document_srl=$1 [L,QSA]

    # mid link
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule ^([a-zA-Z0-9_]+)/?$ ./index.php?mid=$1 [L,QSA]
    # mid + document link
    RewriteRule ^([a-zA-Z0-9_]+)/([0-9]+)$ ./index.php?mid=$1&document_srl=$2 [L,QSA]

    # vid + mid link
    RewriteCond %{SCRIPT_FILENAME} !-d
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/?$ ./index.php?vid=$1&mid=$2 [L,QSA]
    # vid + mid + document link
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([0-9]+)$ ./index.php?vid=$1&mid=$2&document_srl=$3 [L,QSA]

    # mid + entry title
    RewriteRule ^([a-zA-Z0-9_]+)/entry/(.+)$ ./index.php?mid=$1&entry=$2 [L,QSA]
    # vid + mid + entry title
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/entry/(.+)$ ./index.php?vid=$1&mid=$2&entry=$3 [L,QSA]

    #shop / vid / [category|product] / identifier
    RewriteCond %{SCRIPT_FILENAME} !-f
    RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)/([a-zA-Z0-9_\.-]+)$ ./index.php?act=route&vid=$1&type=$2&identifier=$3 [L,QSA]
  • profile profile
    위의 내용으로 수정해도 똑같은 현상이네요... 이건 호스팅사의 문제일까요 ;ㅅ;
  • profile profile
    계정 폴더의 퍼미션 또는 소유권이 달라도 안되는 경우가 있을 수 있습니다.
    계정 폴더의 퍼미션과 소유권을 확인해 보세요.

    상황이 정확이 어떤지 몰라서 답변드리기가 쉽지 않네요.
  • profile profile
    계속 답변 주셔서 감사합니다. 결국 호스팅 사, 방어벽 보안 관련의 문제였습니다... 본인들 문제 아니라고 하시더니 8ㅅ8 크흡.