I have wildcard dns on the server and dynamic subdomains working properly on the server. However there is a problem with the Ajax file processing through jQuery.
Below is the jQuery Ajax code:
$.ajax({
type: 'GET',
url: 'process.php',
data: 'grpid=' + group_select.val(),
success: function(data)
{
$('#grpsrv').html(data);
$('#spinner').css('display','none');
}
});
So internally file will be processed as for example process.php?grpid=88.
In the .htaccess file the line is written as follows:
RewriteRule ^process.php?([A-Za-z0-9]+)$ /home/server-path/user-website/process.php?grpid=$1
But when I echo the $_GET['grpid']
on process.php it is showing blank value.
How to write a RewriteRule
for Ajax file?