Removing traling # from of url including any subdomain
tsarma
6:17 am on May 25, 2012 (gmt 0)
how can I rewrite
*.example.com/#
to
*.example.com
Just to remove hash '#' for example.com url including any sub domain
g1smd
6:40 am on May 25, 2012 (gmt 0)
You can't. The # is wholly evaluated inside the browser.
It is not sent to the server as a part of the request.
tsarma
7:22 am on May 25, 2012 (gmt 0)
Thanks for making it clear. it makes a sense. But what if I have say word "root" instead of #, how would then rewrite it.
lucy24
8:15 am on May 25, 2012 (gmt 0)
I think you need to ask your question in more words. I'm not clear whether you are asking about the literal strings "#" or "root", or if you mean something else.
You can't use real domain names, but you can give the rest of the path as an example. Are you now asking how to redirect "www.example.com/foobar" to "www.example.com" alone? Or how to get rid of "index.html"?
tsarma
8:38 am on May 25, 2012 (gmt 0)
Yes I want to redirect "www.example.com/foobar" to "www.example.com" and also it should apply for all the subdomain of example.com. Like A.example.com/foobar to A.example.com B.example.com/foobar to B.example.com