본문 바로가기
컴퓨터.IT/우분투(ubuntu)

mod_rewrite (짧은 주소)활성화 하기

by www.woobi.org 2020. 9. 11.

XE, Rhymix, Wordpress  에서 짧은주소 혹은 고유주소 기능을 사용하기 위해서는

mod_rewrite 을 활성화 시켜야 한다.


1. mod_rewrite 설치


 $ sudo a2enmod rewrite


2. etc/apache2/apache2.conf 파일 수정


 $ vi etc/apache2/apache2.conf


<Directory /var/www/html>

        Options Indexes FollowSymLinks MultiViews

        AllowOverride All

        Require all granted

</Directory>


을 추가로 입력한다.



화살표 부위도 다음과 같이 수정한다.



<Directory /var/www/>

    Options Indexes FollowSymLinks MultiViews

    AllowOverride All

    Require all granted

</Directory>


위와 같이 수정하고 :wq 를 입력하여 저장한다.


3. 아파치 재시작.


 $ sudo systemctl restart apache2

댓글