Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Retrieve link created by htacces file using php

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..

like image 882
SliQz Avatar asked Mar 13 '26 18:03

SliQz


1 Answers

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.

like image 85
colonelclick Avatar answered Mar 15 '26 09:03

colonelclick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!