Fitur Clean-Url Drupal dengan rewrite Nginx

By: Chocolateshirt

5 Aug 2011

Drupal Clean-url sangat membantu SEO website, terutama untuk Google dan Yahoo. Selain itu juga clean-url akan menambah kejelasan alamat website dan kemudahan untuk diingat. Drupal sudah mendukung fitur clean-url sejak versi 5. Fitur clean-url bisa diakses lewat:

Admin --> Settings --> Clean-URLs

Jika fitur clean-url aktif, link yang dihasilkan adalah:

http://mine.animeku.web.id/content/install-webmin-di-vps-centos

Bandingkan dengan link tanpa clean-url:

http://mine.animeku.web.id/index.php?q=content/install-webmin-di-vps-centos

Permasalahan yang terjadi adalah Nginx belum mendukung fitur clean-url. Tips yang perlu dilakukan adalah menambahkan rewrite rules di file konfigurasi nginx,

1. Login root ke server/vps

2. Buka file konfigurasi Nginx

# nano /etc/nginx/nginx.conf

lalu tambahkan kode berikut ini:

server {
    ...

    if (!-e $request_filename) {
      rewrite ^/(.*)$ /index.php?q=$1 last;
    }

    ...
}

Tekan tombol Ctrl+O dan tekan tombol Enter untuk menyimpan file, lalu tekan tombol Ctrl+X untuk keluar

3. Restart Nginx service dengan perintah:

# service nginx restart

4. Aktifkan fitur clean-url Drupal kamu.

Selamat, kamu sudah bisa memanfaatkan fitur clean-url.

19 Responses to Fitur Clean-Url Drupal dengan rewrite Nginx

pay day loan's picture

pay day loan (not verified)

Saturday, 19 May, 2012 - 12:57   reply 

othptyo http://paydayloanslkm.com/ pay day loan rVpya http://autoinsuranceqx.com/ auto insurance >:-[ http://paydayloanslkm.ca/ payday Canada 8324 http://paydayloanslkm.co.uk/ payday loans :-O

online payday's picture

online payday (not verified)

Thursday, 17 May, 2012 - 02:28   reply 

emzylwx http://paydayloansltg.co.uk/ online payday %-[[[ http://paydayloansltg.com / quick payday loans :-O http://paydayloansplp.ca/ payday loans Canada 2727

buy viagra's picture

buy viagra (not verified)

Thursday, 17 May, 2012 - 02:03   reply 

Nike Dunks Shoes,Cheap Nike Dunk SB's picture

Nike Dunks Shoes,Cheap Nike Dunk SB (not verified)

Wednesday, 16 May, 2012 - 07:33   reply 

Adrian Zuckerberg's picture

Adrian Zuckerberg (not verified)

Wednesday, 16 May, 2012 - 05:17   reply 

The other day, while I was at work, my cousin stole my iPad and tested to see if it can survive a thirty foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is totally off topic but I had to share it with someone! http://lillititus.info

short term loan's picture

short term loan (not verified)

Wednesday, 16 May, 2012 - 01:20   reply 

nwlvpee http://paydayloansef.com/ short term loan 4719 http://paydayloansftc.ca/ payday Canada >:]] http://paydayloansef.co.uk/ payday loans 6261

quickquid's picture

quickquid (not verified)

Tuesday, 15 May, 2012 - 00:38   reply 

mpampuwk http://paydayloansdf.co.uk/ quickquid 0153 http://paydayloansdf.com/ payday loan CjIXI http://paydayloansdf.ca/ cash advance online qAmSbu

payday loans's picture

payday loans (not verified)

Sunday, 13 May, 2012 - 06:33   reply 

btckaa http://paydayloanstm.co.uk/ payday loans :-O http://paydayloanstm.com/ cash advance :-O http://paydayloanstm.ca/ no fax pay day loans 4762

orlistat's picture

orlistat (not verified)

Saturday, 12 May, 2012 - 01:53   reply 

Bad Credit Loans's picture

Bad Credit Loans (not verified)

Friday, 11 May, 2012 - 04:17   reply 

loptsjtx http://paydayloansjjj.co.uk/ Bad Credit Loans aePHZu http://paydayloansplp.com/ quick payday loans fENbu http://paydayloansjjj.ca/ cash advance online 8686 http://paydayloansjjj.com/ quick payday loans FpUUdu

ophthacare's picture

ophthacare (not verified)

Friday, 11 May, 2012 - 02:38   reply 

pounds till payday's picture

pounds till payday (not verified)

Wednesday, 9 May, 2012 - 22:56   reply 

xqyvccy http://paydayloansstc.co.uk/ pounds till payday WFmCxj http://paydayloansstc.com/ quick payday loans =-] http://paydayloansstc.ca/ payday Canada 0930

linjinjiao's picture

linjinjiao (not verified)

Tuesday, 8 May, 2012 - 15:19   reply 

Tell me you are mine. I'll be yours through aaf541bft all the years, till the end of time.
Monster Beats By Dre
Cheap Beats By Dre
Cheap Dre Beats
Cheap Beats Dr Dre
Monster Beats Dr Dre

pay day loan's picture

pay day loan (not verified)

Sunday, 6 May, 2012 - 04:00   reply 

wbkhwd http://paydayloansnba.com/ pay day loan BVmQX http://paydayloansnba.ca/ no fax pay day loans pdLQhn http://paydayloansnba.co.uk/ Bad Credit Loans %-[[[

online payday's picture

online payday (not verified)

Saturday, 5 May, 2012 - 02:38   reply 

payday Canada's picture

payday Canada (not verified)

Friday, 4 May, 2012 - 03:05   reply 

jcuuqzhf http://paydayloanstst.ca/ payday Canada :-O http://paydayloanstst.co.uk/ payday UK 8052 http://paydayloanstst.com/ payday Boise lxYXE http://cheapcamelcigarettes24.com/ cigarettes >:-OOO

pay day loan's picture

pay day loan (not verified)

Thursday, 3 May, 2012 - 07:45   reply 

kklprjxb http://paydayloansttt.com/ pay day loan epuTN http://paydayloansttt.ca/ no fax pay day loan :-O http://paydayloansttt.co.uk/ quickquid %-[[[

online cash advance's picture

online cash advance (not verified)

Sunday, 29 April, 2012 - 21:26   reply 

wfsnbhj http://fastpaydayloansfst.com/ payday advance 2215 online payday loans 0792

qpojji's picture

qpojji (not verified)

Saturday, 28 April, 2012 - 06:04   reply 

jxwowm

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

Tentang saya

Saya suka menonton anime, tetapi saya bukan otaku :)

Freelance webdesigner & webdeveloper using Drupal.

Arsip blog

Me & My Friends