dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: .htaccess - not sure how to describe it (& PHP)

  1. #1
    Join Date
    Jun 2010
    Posts
    92

    .htaccess - not sure how to describe it (& PHP)

    Hey there, what I want to do is convert the following into $_GET[]

    eg

    mywebsite.com.au/search/selection-make/selection-model/?price1=1&price2=2


    and if I do a print_r($_GET) it will have

    $_GET[0] => selection-make
    $_GET[1] => selection-model
    $_GET[price1] => 1
    $_GET[price2] => 2

    Is what I am after possible without having to create those sub-directories? Or do I have to create them?

    thank you very much

  2. #2
    Join Date
    Sep 2010
    Location
    England
    Posts
    36
    I'm not sure 100% at at the minute how to do it but what you need to look for is MOD_REWRITE or Regex as its sometimes called. Try search this forum and google for help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles