Jumat, 09 Agustus 2013

PHP Indonesia - Facebook: ASK ABOUT htaccess kalo file .php dijadikan .js c...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
ASK ABOUT htaccess kalo file .php dijadikan .js c...
Aug 10th 2013, 05:42, by Erwin Budiantoro

Erwin Budiantoro 5:42am Aug 10
ASK ABOUT htaccess

kalo file .php dijadikan .js caranya gimana yah mas mas ?

aselinya begini :
folder/fileajax.php

mau dipanggil jadi bengini :
<script type="text/javascript" src="folder/fileajax.js"></script>

htaccessnya begini :
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

RewriteRule ^folder/fileajax.js$ folder/fileajax.php [L]

hasilnya 404 (Not Found)

yg bener gimana sih ?

Budi Sasongko 5:47am Aug 10
mmg bs normalkah kalo .php djdkan ke .js ? server process'a dmn ?
mngkn file .php dicall oleh .js kali

Mizno Kruge 5:51am Aug 10
RewriteRule ^(.*)\.js$ $1.php [NC,QSA]

Muhammad Saleh Hafizh Fajri 5:58am Aug 10
cuma rewrite ulang ekstensi url doank normal kok server proses nya mas budi sasongko
saya aja dijadikan ke aspx

Fikri Handa Herriansyah 6:03am Aug 10
dikasi content aja ... seperti phpmyadmin yang cssnya ..

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar