퍼머링크(permalink)는 인터넷에서 특정 페이지에 영구적으로 할당된 URL 주소를 뜻한다.

이 주소는 한 번 정해지면 영원하다는 의미에서, 영구적인(permanent) 주소라는 뜻의 permanent link를 줄여 만든 말이다.

 

이 작업을 해줘야 본인이 원하는 URL을 사용할 수 있습니다.

(ex. www.example.com/test/test)

특히 워드프레스는 설정에 퍼머링크 세팅이 있기 때문에, 서버사이드에서 해당 작업을 꼭 해줘야 합니다.

(안하면 에러나요....ㅜㅜ)

저는 사이트 작업을 외주로 맡긴 후, 서버작업을 직접 AWS로 세팅했습니다.

 

퍼머링크 세팅은 간단히 'httpd.conf' 를 수정하면 됩니다.

$ sudo vi /etc/httpd/conf/httpd.conf

아래 영역에서 제일 하단의 AllowOverride None 라인을 AllowOverride All로 변경

해당 파일에는 AllowOverride 라인이 많기 때문에 <Directory "/var/www/html"> 영역의 라인을 변경할 때는 주의!

<Directory "/var/www/html">

#

# Possible values for the Options directive are "None", "All",

# or any combination of:

# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

#

# Note that "MultiViews" must be named *explicitly* --- "Options All"

# doesn't give it to you.

#

# The Options directive is both complicated and important. Please see

# http://httpd.apache.org/docs/2.4/mod/core.html#options

# for more information.

#

Options Indexes FollowSymLinks

​

#

# AllowOverride controls what directives may be placed in .htaccess files.

# It can be "All", "None", or any combination of the keywords:

# Options FileInfo AuthConfig Limit

#

AllowOverride All

​

#

# Controls who can get stuff from this server.

#

Require all granted

</Directory>

 

+ Recent posts