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 :
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
Post a Comment