Skip to content
Narrow screen resolution Wide screen resolution Auto adjust screen size Increase font size Decrease font size Default font size

dioscouri.com

Home arrow JUGA arrow HowTo arrow Redirect Users to a Content Article
Redirect Users to a Content Article

If a user attempts to access a page that is restricted from them, by default, JUGA will redirect them to your homepage with a simple message that says "Error: Unauthorized Access". If you aren't getting the error message, then go to JUGA>>Configuration and delete your default_ce. 


 

Using a Single Article for ALL Redirects

Let's say you want your users to be redirected to a friendly page that says something like:

We're sorry, but the page you just tried to access is restricted.  It requires membership.  To sign up for membership, please click here. 

If you feel you have reached this page in error, please contact us.  Thanks!

In JUGA, we refer to this as a Custom Error page, or CE for short.

To do this, first create a new content article in Joomla!  Note the new content's ID number after you save it.  For the sake of this HowTo, let's assume that the new article's ID number is 19.

The URL for VIEWING that article in Joomla! 1.0.x will be:

index.php?option=com_content&task=view&id=19
The URL for VIEWING that article in Joomla! 1.5.x will be:
 
index.php?option=com_content&view=article&id=19

This is your Custom Error URL, or CE URL for short.

To use this page for *every* redirect, go to JUGA>>Configuration and make the above URL your default_ce.

HTH!


     

    Using Multiple Articles for Redirects

    Let's say you want your users to be redirected to a CE URL, but you want to use a different CE URL for different Site Items. 

    To do this, follow the instructions above to create all the CE pages you will need.  Make note of all their ID numbers.

    1. In JUGA>>Configuration, make flex_ce into your first CE URL
    2. In JUGA>>Site Items, for each of the Site Items that correspond to your first CE URL, select the checkbox next to their name and click the button "CE URL Publish" in the toolbar.  You will see the red X next to Error URL Published turn to a green tick.
    3. Re-select the checkboxes next to those Site Items and click the button "CE URL +" in the toolbar. This will add your flex_ce to each of them.

    Repeat steps 1 - 3 for each of your CE URLs!

    HTH!
     
    Skilled in PHP and Joomla!? Like working from home? Want to join our team? If freedom and creativity appeal to you, contact us in our Support Center!

    Login Menu