CMS/Drupal

Drupal::Install::Clean URLs

onesixx 2013. 1. 3. 00:34
반응형

Clean URLs

If your server is configured for mod_rewrite URL rewriting, then you can go ahead and enable Clean URLs now.
This will change your URLs from something like /?q=node/3 to just /node/3.

http://ycsoftware.net/drupal-7-clean-url-fix-ubuntu-open-atrium-red-hat/

 

0. path 모듈 enable

 

 

1. http.conf 세팅

Open you apache2.conf or http.conf and change the AllowOverride directive:


to

THEN RESTART THE APACHE SERVICE (IMPORTANT).

httpd.conf 에서 mod_rewrite.so관련 LoadModule의 주석을 풀어준다

 

 

2.  .htaccess

index.php가 있는 폴더내에 .htaccess 파일이 제대로 있는지만 확인

For drupal the first few lines of the .htaccess file look like the following

 

# Apache/PHP/Drupal settings:
#


# Protect files and directories from prying eyes.
Order allow,deny


# Don't show directory listings for URLs which map to a directory.
Options –Indexes

 

 

3. 서버가 .Htaccess를 잘 읽고 있나 확인

.htacess 파일을 열어 “아무문자”나 넣어 오류를 일으킨다.
만약 오류가 안난다면 내 서버가 .htaccess파일을 읽지 않고 있는거다.

 


 

4. Enable the "Clean URL" Feature

Now go back to your drupal admin and enable “CLEAN URL”

서버 Restart

 Administer > Configuration > Search and metadata 의 Clean URLs 를 Enable로 세팅.

반응형

'CMS > Drupal' 카테고리의 다른 글

Drupal::Libraries API  (0) 2013.08.31
FireFox paste security Setting  (0) 2013.08.21
Flag  (0) 2013.08.19
Maintenance Mode  (0) 2013.07.17
git  (0) 2013.05.21
Drupal::install  (0) 2013.01.01