homepage Welcome to WebmasterWorld Guest from 54.161.228.29
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Generate HTML on the fly from PHP and url rewriting
fm86




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

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.

 

Readie




msg:4110087
 10:37 am on Apr 5, 2010 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved