Welcome to WebmasterWorld Guest from 54.147.250.33

Forum Moderators: coopster & jatar k

Generate HTML on the fly from PHP and url rewriting

   
9:44 am on Apr 5, 2010 (gmt 0)

5+ Year Member



Hi everybody!

I'm running a website which uses PHP to extract and present data from a database. So far I've done it using $_GET variables to pass parameters to the script.

Now I'm reading tips about how to increase ranking in search engines and I see that it's much better to have a link named
host/folder/wish-you-were-here.html
instead of
host/folder/songs.php?songid=361

For obvious reasons. So the question is: how do I modify my script so that, when called, it generates the desired URL? Which are the available techniques? I suppose also this forum uses the same method, to create post pages.
10:37 am on Apr 5, 2010 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member



If you are using the Apache software on your server, you use a technology called .htaccess (Specifically mod_rewrite (RewriteRule)) - you can read about it here: [webmasterworld.com...]

For other platforms I'm afraid I don't know.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month