hai guys, i want to know how to shorten the urls . for example for my resume , i want the url to be http://www.abc.com/leo . this should open the php file http://www.abc.com/member.php3?name=leo . Can anyone help me ?
You can use mod rewrite in a .htaccess file:
RewriteEngine on RewriteBase / RewriteRule leo$ /member.php3?name=leo
Hi, For this we have to get access to the server . can we do it programatically ??.. or is there a way to access http://www.abc.com/member.php3?name=leo by typing http://www.abc.com/leo.htm ?.. Please help . thanks ..leo
you must set apache to pass html pages to php.exe first.
Then use the "include" or "require" function to include the necessary php pages in your html page.
require ("/member.php3?name=leo")
Alex
hi.. this works fine.. but is this the usual method if we use database ?? ..say we have to maintain 100 resumes . then it would not to be possible to give this require function rt ?. for example http://www.abc.com/leo.htm http://www.abc.com/joe.htm http://www.abc.com/alex.htm http://www.abc.com/matt.htm http://www.abc.com/steve.htm http://www.abc.com/von.htm
these should load http://www.abc.com/member.php3?name=leo http://www.abc.com/member.php3?name=joe http://www.abc.com/member.php3?name=alex http://www.abc.com/member.php3?name=matt http://www.abc.com/member.php3?name=steve http://www.abc.com/member.php3?name=von
plz help me.. will this method work out then ?