SEO friendly url creation using js, php in html page
I am developing a website for a client using html, js and php. For any
database call i am using ajax call
$.ajax({
type: 'POST',
url: "index2.php",
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg, status) {
dosomething(msg);
},
error: function (msg, status) {
console.log("failure");
console.log(msg);
}
});
and php pages returns me the output. The problem is that index.html page
url is not getting changed.....I want it to change say index.html?id=23
(creating query string in html page)
Basically my aim to make it SEO friendly url like index.html/helloppl What
is the best method to do this. While googling i found link for
doing....still i need to create query string here...any help is
appreciated.
No comments:
Post a Comment