javascript - Can I access the URL rewritten with mod_rewrite on the client when it's not shown in the URL? -


still on first attempts mod_rewrite. i'm doing rewrite urls:

rewriterule ^/(.*)/$ /index.html?app=%1 [l] rewritecond %{request_uri} !^/(modules|html/.*)$  rewriterule ^(.*)/(.*)[.,](html|htm)$ /$2.$3?app=$1 [l] 

which rewrites:

www.mysite.com/123/             => www.mysite.com/index.html?app=123 www.mysite.com/123/foo.html     => www.mysite.com/foo.html?app=123 www.mysite.com/modules/foo.html => www.mysite.com/modules.foo.html 

all works fine.

what know whether possible access rewritten url (like www.mysite.com/index.html?app=123) client. browser url shows seo-friendly url, when "in background", i'm serving url redirected.

question:
there way access rewritten url on client using javascript/jquery when it's not accessible through window.location.href?

thanks help!

simple answer: no

the rewriting done on server side , there no way (out of box) know rewritten url on client. can used hide implementation details. if need rewritten url have send client.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -