daxguy Posted August 12, 2010 Share Posted August 12, 2010 i have written a script using touch() function for creating new pages.. but the url's appear are not search engine frendly i want the urls to appear like this everyspace filled with - oder than a space because the space makes the url display as http://localhost/gl/uploads/movies/2010/08/The%20Hangman%202010%20Hindi%20Movie%20Watch%20Online/The%20Hangman%202010%20Hindi%20Movie%20Watch%20Online.php I want it to appear this way http://www.onlinewatchmovies.net/hindi/vroom-2010-hindi-movie-watch-online.html any suggestion how can i do this? Link to comment https://forums.phpfreaks.com/topic/210574-url-problem/ Share on other sites More sharing options...
marcus Posted August 12, 2010 Share Posted August 12, 2010 mod rewrite. Link to comment https://forums.phpfreaks.com/topic/210574-url-problem/#findComment-1098599 Share on other sites More sharing options...
msaz87 Posted August 12, 2010 Share Posted August 12, 2010 Use str_replace Link to comment https://forums.phpfreaks.com/topic/210574-url-problem/#findComment-1098600 Share on other sites More sharing options...
daxguy Posted August 12, 2010 Author Share Posted August 12, 2010 umm.. wer should i use this? str_replace() with? Link to comment https://forums.phpfreaks.com/topic/210574-url-problem/#findComment-1098602 Share on other sites More sharing options...
Alex Posted August 12, 2010 Share Posted August 12, 2010 mgallforever is correct. What you want to look into is mod_rewrite. Just Google it, you'll find plenty of results. Link to comment https://forums.phpfreaks.com/topic/210574-url-problem/#findComment-1098606 Share on other sites More sharing options...
daxguy Posted August 12, 2010 Author Share Posted August 12, 2010 umm ill try finding that Link to comment https://forums.phpfreaks.com/topic/210574-url-problem/#findComment-1098608 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.