+ 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 ?
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 ?
+ 12
i am dont now how to enable friendly links? you can explain?
+ 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).
+ 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.
0
I think you should configure your web server and server side app to use these human-friendly links.