.htaccess - Get htaccess rewritten URL with jquery -
i'm using .htaccess file , it's this:
rewriterule ^(.*)/(.*)/?$ page.php?link=$1&sublink=$2
all can url way displayed can't see find way return me .htaccess
masking.
i used solve part of problems
var spageurl = window.location.search.substring(1); var surlvariables = spageurl.split('&'); (var = 0; < surlvariables.length; i++) { var sparametername = surlvariables[i].split('='); if (sparametername[0] === 'link') { $('a[href*="' + sparametername[1] + '"]').addclass('active'); } }
this code returns need if url isn't friendly, in case. know how solve this?
you can pass parameter:
rewriterule ^(.*)/(.*)(/?)$ page.php?link=$1&sublink=$2&original=$1/$2$3
Comments
Post a Comment