[Skip to main content](#vessel-content)

#   Access registered content

##

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago -  15 years 2 months ago [\#23443](#23443) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  *[Access registered content](/forum/4-how-to/23443-access-registered-content#23443 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")* was created by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")*

Hi!

When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?

Best regards

Last edit: 15 years 2 months ago by [emergentec](/forum/user/949-emergentec "View emergentec's Profile"). Reason: typo

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#23448](#23448) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23448 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

Hi,

Please give the SEF and non SEF URLs of the pages you're talking about so that we can understand the problem.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#23458](#23458) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23458 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

**nicolas wrote:**

> Please give the SEF and non SEF URLs of the pages you're talking about so that we can understand the problem.

**SEF:** [ example.com/mybio/accountadmin](http://example.com/mybio/accountadmin)
**Non-SEF:** [ example.com/index.php?option=com\_hikasho...ut=cpanel&amp;Itemid=112](http://example.com/index.php?option=com_hikashop&view=user&layout=cpanel&Itemid=112)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#23461](#23461) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23461 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

How did you create that link ?
Did you use the joomla menu manager to create a new menu of the type hikashop user control panel ?
What SEF system are you using ? Joomla's ? sh404sef ? Another one ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#23466](#23466) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23466 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

**nicolas wrote:**

> How did you create that link ?
> Did you use the joomla menu manager to create a new menu of the type hikashop user control panel ? yes
> What SEF system are you using ? Joomla's ? sh404sef ? Another one ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#23471](#23471) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23471 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

And do the other links on your website work when SEF is activated ?
Because the SEF process for menu URLs are completely handled by joomla. So I'm not really sure of what could be the cause...

Could you try do download the latest version on our website and install it again on your website ? Just in case you don't have the latest build of the 1.5.3 version.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#23477](#23477) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23477 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

Other links also don't work, but we only need it for the HikaShop part.

I do have the latest version of HikaShop.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#23489](#23489) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23489 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

If other links don't work, it means that you didn't setup SEF properly on your website. So it's really not related to HikaShop.
You should just fix the SEF settings of joomla and make sure that the htaccess file has been renamed correctly at the root of your website.

Here is a tutorial on SEF setup for joomla0 that you might want to follow:
[ docs.joomla.org/Enabling\_Search\_Engine\_F...(SEF)\_URLs\_on\_Apache](http://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs_on_Apache)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#23791](#23791) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23791 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

I now disabled SEF and tried to access a product details page without being logged in. Insteadt of a login form the message "Product not found" is displayed!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#23794](#23794) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23794 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

Could you give us the links so that we can look at the problem ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#23839](#23839) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23839 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

Our development version is not reachable from outside. What should happen when a user tries to access a product details page which has custom access level?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago -  15 years 2 months ago [\#23853](#23853) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23853 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

First, the product should not appear on products listings if they don't have access to it, so the users should not even be able to access the product page. But if they try to access it via a direct URL, HikaShop will give that error message: "Product not found"

Last edit: 15 years 2 months ago by [nicolas](/forum/user/63-nicolas "View nicolas's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#23912](#23912) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23912 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

**nicolas wrote:**

> First, the product should not appear on products listings if they don't have access to it, so the users should not even be able to access the product page. But if they try to access it via a direct URL, HikaShop will give that error message: "Product not found"

We are linking from a Silverlight application to the shop, when a user tries to access a module in Silverlight, which hasn't been purchased in HikaShop. If the Joomla session of a user has expired we would like to display the login form and afterwards redirect him to the product details page. How would this be possible?

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#23914](#23914) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23914 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

You need to edit the file show of the view product via the menu Display-&gt;Views and add a redirect to the login form after the line:
$app-&gt;enqueueMessage(JText::_('PRODUCT_NOT_FOUND'));

redirects can be done like that:
$app-&gt;redirect('[ mywebsite.com/mypage](http://mywebsite.com/mypage)');

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#23915](#23915) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23915 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

But to which page should I redirect, that after the login the user is back on the product details page?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#23923](#23923) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#23923 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

You should do like that: Code:

$app-&gt;enqueueMessage(JText::_('PLEASE_LOGIN_FIRST')); global $Itemid; $url = ''; if(!empty($Itemid)){ $url='&amp;Itemid='.$Itemid; } if(version_compare(JVERSION,'1.6','&lt;')){ $url = 'index.php?option=com_user&amp;view=login'.$url; }else{ $url = 'index.php?option=com_users&amp;view=login'.$url; } $app-&gt;redirect(JRoute::_($url.'&amp;return='.urlencode(base64_encode(hikashop_currentUrl())),false));

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#24066](#24066) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#24066 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

Thank your very much! This part is working, we are now trying to fix the problem with SEF.

Best regards

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#24253](#24253) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#24253 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

When I try to access the product listing via the URL and not being logged in, I get to see the header part of the product listing (which is only a graphic in our case). The associated modules are not displayed. Is it possible to forward to the login form when trying to access the product listing as Public-User?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14290
-
-

15 years 2 months ago [\#24258](#24258) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#24258 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

You can change the permissions of that menu in the joomla menu manager so that public users cannot see it.
I don't know if joomla is smart enough to redirect to the login though. If not, you would have to edit the file listing of the view product and do your redirect there for non logged in users with some php code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[emergentec](/forum/user/949-emergentec "View emergentec's Profile")**
- [![emergentec's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/949-emergentec "View emergentec's Profile") Topic Author
- [ Offline](/forum/user/949-emergentec)

Less More

- Posts: 137
- Thank you received: 2
-
-

15 years 2 months ago [\#24269](#24269) by [emergentec](/forum/user/949-emergentec "View emergentec's Profile")  Replied by *[emergentec](/forum/user/949-emergentec "View emergentec's Profile")* on topic *[Re: Access registered content](/forum/4-how-to/23443-access-registered-content#24269 "Hi!  When trying to access the customer account not logged-in and SEF has been displayed a login form is displayed and after successful login he get's redirected to the customer account site. When we have SEF enabled, the user gets the 404 error message from Joomla. Is it possible to display the login form also when SEF is enabled?  Best regards")*

**nicolas wrote:**

> You can change the permissions of that menu in the joomla menu manager so that public users cannot see it.
> I don't know if joomla is smart enough to redirect to the login though. If not, you would have to edit the file listing of the view product and do your redirect there for non logged in users with some php code.

How can I execute the redirect for non logged in users?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzQtaG93LXRvLzIzNDQzLWFjY2Vzcy1yZWdpc3RlcmVkLWNvbnRlbnQ/c3RhcnQ9MCZ0bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.121 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
