Reading URL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashokojha
    New Member
    • Jun 2008
    • 1

    Reading URL

    Hi,

    I like do some thing like this. let say my web site is

    www.abc.com

    when user enter url

    www.abc.com/xyz
    www.abc.com/qwe

    I like to redirect page to other page. Not sure how I can do this either using PHP or Javascript. my main again abc.com is in php.

    Thank you,
    AK
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Can URL rewriting help?

    Comment

    • Markus
      Recognized Expert Expert
      • Jun 2007
      • 6092

      #3
      Adding to r0's post, what you're speaking of is known as 'pretty urls'. What happens behind the scenes is, using a htaccess file, the urls are 'rewritten'. So www.abc.com/?post=21 becomes ww.abc.com/post/21 or www.abc.com/21
      You then access them by doing $_GET['post'].

      Here's a more newbie friendly article.

      Comment

      Working...