javascript - URL that hide my $_GET parameter -


i have problem url , method form. here's step-1 url :

http://localhost/myproject/media.php?module=create

and here's current url (step-2) when submit data :

http://localhost/myproject/media.php?module=create&code=j-001&year=t-016&dept=p-001&class=kg-a&semester=1&day=monday

is possible replace current url (step-2) short url ? or, possible makes url hide $_get parameter?

im try editing .htaccess still cant right:

options +followsymlinks

rewriteengine on #rewriterule ^index.php$ media.php?module=create [l] rewriterule ^test-([0-9]+)/([0-9-0-9a-za-z\w]+)/?$ media.php?module=create&code=$1&year=$2&dept=$3&class=$4&semester=$5&day=$6 [nc]  #rewriteengine on #rewriterule ^test-([0-9]+)-(.*)\.html$ media.php?module=create&code=$1&year=$2&dept=$3&class=$4&semester=$5&day=$6  [l] #options -indexes 

i don't know htaccess far know every part captured (between parenthesis) in regular expression mapped $1(or other number - depending on order) in resulting url.

so

rewriterule ^test-([0-9]+)/([0-9-0-9a-za-z\w]+)/?$ media.php?module=create&code=$1&year=$2&dept=$3&class=$4&semester=$5&day=$6 

only captures 2, , tries map them 6 different options.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -