3

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

4

1 回答 1

2

取决于服务器,但有时这些是可用的。

$_SERVER['REDIRECT_SCRIPT_URL']

$_SERVER['REDIRECT_SCRIPT_URI']

如果这不起作用,我会尝试从 .htaccess 设置自定义全局,如另一个问题中所述。

于 2013-04-25T21:00:00.650 回答