+ 19

How to change GET method URL with javascript ?

hello guys i am not able to change Get URL Parameters. i want something like this original url= http://roominsikar.com/display_post.php?post_id=6 i can get like as http://roominsikar.com/One-Independent-Room-On-Bajaj-Road-Sikar ? page title name can show in url ?

20th Nov 2016, 2:22 AM
Saurav Saini
Saurav Saini - avatar
6 Réponses
+ 14
thnku sir now my problem solve :) and please tell me how to redirect home page if requested url does not exist ?
24th Nov 2016, 4:14 AM
Saurav Saini
Saurav Saini - avatar
+ 12
i am dont now how to enable friendly links? you can explain?
21st Nov 2016, 1:35 PM
Saurav Saini
Saurav Saini - avatar
+ 1
http://stackoverflow.com/questions/812571/how-to-create-friendly-url-in-php In your case every post should be accessible with alias alike one in second link (page title).
21st Nov 2016, 4:43 PM
Ivan G
Ivan G - avatar
+ 1
http://stackoverflow.com/questions/768431/how-to-make-a-redirect-in-php Basically you should do something like: header("Location: http://example.com/myOtherPage.php"); die(); And you can write header only before any html output. Die or exit function stops further execution which you don't need maybe.
24th Nov 2016, 6:00 AM
Ivan G
Ivan G - avatar
0
I think you should configure your web server and server side app to use these human-friendly links.
20th Nov 2016, 5:12 AM
Ivan G
Ivan G - avatar