Forum Dhammacitta

Buddhisme dan Kehidupan => Tolong ! => Topic started by: wen78 on 13 November 2009, 09:50:55 PM

Title: [ask] xampp & php & rewrite
Post by: wen78 on 13 November 2009, 09:50:55 PM
di xampp, file httpd.conf udah diubah jadi LoadModule rewrite_module modules/mod_rewrite.so

di ..\xampp\htdocs\.htaccess , isinya:
<FilesMatch "\.php$">
ForceType application/x-httpd-php
SetHandler application/x-httpd-php
</FilesMatch>


tapi kenapa masih keluar .php nya ya? => http://localhost/index.php/title
harusnya jadi => http://localhost/index/title

kira2 apa yg salah ya? soalnya gua gak mo pake RewriteEngine on

ada yg bisa bantu?

trs.. kl udah di upload ke server(pake .htaccess diatas), seharusnya dah beres apa gmn?
baru pertama kali bikin web ;D

Title: Re: [ask] xampp & php & rewrite
Post by: Sumedho on 13 November 2009, 10:30:38 PM
kalau gitu mah mesti pake rewrite rule di .htaccess

maunya -> http://localhost/index/title
beneran -> http://localhost/index.php/title

coba taro di root... entah jalan apa kagak, belon di test
Quote
RewriteEngine On
RewriteBase /
RewriteRule ^index/(.*)$ /index.php/$1 [PT,L,QSA]
RewriteRule ^index/*$ /index.php [L,QSA]
Title: Re: [ask] xampp & php & rewrite
Post by: wen78 on 14 November 2009, 02:13:06 AM
gua gak baca bener, ForceType application/x-httpd-php untuk paksa file dibaca sebagai .php
jadi gua rename index.php jadi index aja.

gak tau napa, gua lebih suka system ini dibanding system mod_rewrite ;D
tp kl program web dah jadi/jalan mo pake sytem ini, emank musti rombak program web nya. system mod_rewrite lebih efektif.

[at] Sumedho
thx for the help ;)




problem solve. aye lock aje yee.. ;D
thx