I am trying to retrieve an url form the Adress bar in a joomla enviroment.
The URL´s are put together with HTACCES i think.. Wich causes url to look like this:
www.myadress.com/webshop/category/shopitem/flypage.tpl.php
Now when i use a server request URI it will give me something like this:
/index.php?option=com_virtuemart&Itemid=41&category_id=25&flypage=flypage.tpl&lang=nl&limitstart=0&page=shop.product_details&product_id=59
Anybody that can help me with this? I need it to build a custom crumbmenu..
Depends on the server but sometimes these are available.
$_SERVER['REDIRECT_SCRIPT_URL']
$_SERVER['REDIRECT_SCRIPT_URI']
If that does not work I would try setting a custom global from .htaccess as described here in another question.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With