Hardik Raval
Hardik Raval

Reputation: 1940

get the current url with any parameter like # in php

I want my current page url in php my page have no query string like

e.g http://example.com/questions/ask/#/shop/12/67777

i get http://example.com/questions/ask/ but from # the url is break

Upvotes: 0

Views: 107

Answers (1)

Nicolas
Nicolas

Reputation: 5668

The browser doesn't send to the server the URL datas after the #, there are only used client-side (considered as an achor). But you can use Javascript to get these (with location.hash).

Upvotes: 1

Related Questions