0
我想問一下是否可以更改AJAX中「隱藏的URL」的「真實URL」。 此網址:在AJAX中更改URL
$.ajax({
type: "POST",
url: "http://localhost/process.php",
data: form.serialize(),
dataType : 'json',
success: function(data) {...}
});
改變這個網址:
$.ajax({
type: "POST",
url: "http://localhost/hide",
data: form.serialize(),
dataType : 'json',
success: function(data) {...}
});
我試圖用的.htaccess但這並沒有工作:
RewriteEngine On
RewriteBase/
RewriteRule ^/hide.*$ /process.php [L,QSA]
THX的幫助。