Reputation: 1045
Is it possible to do something like the URL below?
myurl.co.uk/#myAnchor?myQry=this
I'm trying to pass tracking codes while also being able to have multiple links from an email go to relevant parts of my page.
This currently seems to do nothing as it is. Is it actually possible.
Upvotes: 5
Views: 6222
Reputation: 189
Though the query always comes before any anchors, here is the solution for this if required.
One solution for this could be to use Apache HTACCESS and declare #myAnchor in rewrite rules. Then you can use something like this:
myurl.co.uk/#myAnchor?myQry=this
But please remember that in the htaccess the #
is also used for commenting so you will have to escape it with a rewrite rule.
Upvotes: 0
Reputation: 827
The query goes before the anchor, so:
http://example.com/page.php?parameter=value#anchor
Upvotes: 11