Page 1 of 1

How to redirect to a backend component ?

Posted: Sat Mar 31, 2012 5:31 pm
by paulnecsoiu
Hi guys,

I need to redirect from a site to a backend component from another site like below. The problem is that after the execution of the line I'am redirected to the backend where first I must to login and then the execution go to the component.php file.

The question is how can I be redirected directly to the entry file of the backend component e.g. component.php withowth requiering me to log???

Code: Select all

header("location:http://domain.com/joomla/administrator/index.php/option=com_component)
What I actually want is that after redirection to execute some code from the backend component.

Thanks in advance for any response.

Re: How to redirect to a backend component ?

Posted: Fri Apr 06, 2012 9:35 am
by dam-man
Are you willing to go to a complete different site? Or is this in your own administrator. If the other site has password protection (and Joomla has) then you need to login always.

Re: How to redirect to a backend component ?

Posted: Sat Apr 07, 2012 1:30 pm
by paulnecsoiu
Tank you very much dam-man,

Indeed I need to redirect to a different site. I am glad that you have confirmed to me that it can not be done withouth login every time because I'm new to joomla coding.

But I find another solution to this. I moved the file that I want to redirect to in the frontend of the component :

Code: Select all

header("location:http://domain.com/joomla/index.php/option=com_component)

where it seems that apparently you don't need to login every time :D

Thank you again for your response.