Disable page for not logged in userscontroller_action_predispatch event is not firing my observer404 - Redirect to Home Page - Banner Slider Not WorkingMagento 404 Page redirect to home page in NginxAdmin page not found - 404Magento addons showing 404 page from top menu after update 1.9.2.0 to 1.9.2.4How to call 404 page not found from view.phtml404 page url in magento 2How to change homepage based on cookies?Redirect to our custom 404 page fir links to disabled store viewmagento 1 Remove Category path from product URL is not workingHow to make separate success page for a specific product ordering in magento 1.9.3.1?
Swapping "Good" and "Bad"
What is /bin/red
How to know if blackberries are safe to eat
Postgres trigram match acting strange for specific characters
"was fiction" vs "were fictions"
Integer Lists of Noah
What are the original Russian words for a prostitute?
Is it possible to split a vertex?
How can I effectively communicate to recruiters that a phone call is not possible?
Is there any reason why MCU changed the Snap to Blip
Efficiently defining a SparseArray function
Having decision making power over someone's assets
What minifigure is this?
PDF page & word count, recursive searching of directory tree, output to excel
Why did Harry Potter get a bedroom?
Is it okay to roll multiple attacks that all have advantage in one cluster?
What is a "Lear Processor" and how did it work?
Should I include code in my research paper?
Is there a nice way to implement a conditional type with default fail case?
Is it possible to set permissions on schema fields to restrict editing of them to certain users?
When an electron changes its spin, or any other intrinsic property, is it still the same electron?
Addressing unnecessary daily meetings with manager?
Why does every calorie tracking app give a different target calorie count for the same goals?
How do you move up one folder in Finder?
Disable page for not logged in users
controller_action_predispatch event is not firing my observer404 - Redirect to Home Page - Banner Slider Not WorkingMagento 404 Page redirect to home page in NginxAdmin page not found - 404Magento addons showing 404 page from top menu after update 1.9.2.0 to 1.9.2.4How to call 404 page not found from view.phtml404 page url in magento 2How to change homepage based on cookies?Redirect to our custom 404 page fir links to disabled store viewmagento 1 Remove Category path from product URL is not workingHow to make separate success page for a specific product ordering in magento 1.9.3.1?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
How to show 404 for the unlogged user instead of page?
For now, I have: when the user is not logged the page link does not show in the main menu. But when I type the URL (page.com/my_page) I get redirect to my_page.
Any help would be appreciated. Thanks in advance.
magento-1.9 404-page
|
show 2 more comments
How to show 404 for the unlogged user instead of page?
For now, I have: when the user is not logged the page link does not show in the main menu. But when I type the URL (page.com/my_page) I get redirect to my_page.
Any help would be appreciated. Thanks in advance.
magento-1.9 404-page
You mean if user not logged in you want to redirect them to 404 page ?
– Ravi Soni
Jul 1 at 12:37
@RaviSoni, thank you for your comment. Unfortunately I'm new to magento. Correct me if i'm wrong. I have to create custom module for that? And in config.xml I have to define events?
– SebastianT
Jul 1 at 12:41
Yes, you have to define it in config.xml. But what your exact requirement? If user not logged in, you want them to redirect on 404 page. Right? In short, you don't allow the guest user on your website. Right?
– Ravi Soni
Jul 1 at 12:45
Yes, that's right. I have page for example "my_page" and if i go to page.com/my_page i want to redirect to 404 if i'm not logged in.
– SebastianT
Jul 1 at 12:48
It's a cms page?
– Ravi Soni
Jul 1 at 12:50
|
show 2 more comments
How to show 404 for the unlogged user instead of page?
For now, I have: when the user is not logged the page link does not show in the main menu. But when I type the URL (page.com/my_page) I get redirect to my_page.
Any help would be appreciated. Thanks in advance.
magento-1.9 404-page
How to show 404 for the unlogged user instead of page?
For now, I have: when the user is not logged the page link does not show in the main menu. But when I type the URL (page.com/my_page) I get redirect to my_page.
Any help would be appreciated. Thanks in advance.
magento-1.9 404-page
magento-1.9 404-page
edited Jul 1 at 12:54
poojan sharma
8411 silver badge10 bronze badges
8411 silver badge10 bronze badges
asked Jul 1 at 12:36
SebastianTSebastianT
185 bronze badges
185 bronze badges
You mean if user not logged in you want to redirect them to 404 page ?
– Ravi Soni
Jul 1 at 12:37
@RaviSoni, thank you for your comment. Unfortunately I'm new to magento. Correct me if i'm wrong. I have to create custom module for that? And in config.xml I have to define events?
– SebastianT
Jul 1 at 12:41
Yes, you have to define it in config.xml. But what your exact requirement? If user not logged in, you want them to redirect on 404 page. Right? In short, you don't allow the guest user on your website. Right?
– Ravi Soni
Jul 1 at 12:45
Yes, that's right. I have page for example "my_page" and if i go to page.com/my_page i want to redirect to 404 if i'm not logged in.
– SebastianT
Jul 1 at 12:48
It's a cms page?
– Ravi Soni
Jul 1 at 12:50
|
show 2 more comments
You mean if user not logged in you want to redirect them to 404 page ?
– Ravi Soni
Jul 1 at 12:37
@RaviSoni, thank you for your comment. Unfortunately I'm new to magento. Correct me if i'm wrong. I have to create custom module for that? And in config.xml I have to define events?
– SebastianT
Jul 1 at 12:41
Yes, you have to define it in config.xml. But what your exact requirement? If user not logged in, you want them to redirect on 404 page. Right? In short, you don't allow the guest user on your website. Right?
– Ravi Soni
Jul 1 at 12:45
Yes, that's right. I have page for example "my_page" and if i go to page.com/my_page i want to redirect to 404 if i'm not logged in.
– SebastianT
Jul 1 at 12:48
It's a cms page?
– Ravi Soni
Jul 1 at 12:50
You mean if user not logged in you want to redirect them to 404 page ?
– Ravi Soni
Jul 1 at 12:37
You mean if user not logged in you want to redirect them to 404 page ?
– Ravi Soni
Jul 1 at 12:37
@RaviSoni, thank you for your comment. Unfortunately I'm new to magento. Correct me if i'm wrong. I have to create custom module for that? And in config.xml I have to define events?
– SebastianT
Jul 1 at 12:41
@RaviSoni, thank you for your comment. Unfortunately I'm new to magento. Correct me if i'm wrong. I have to create custom module for that? And in config.xml I have to define events?
– SebastianT
Jul 1 at 12:41
Yes, you have to define it in config.xml. But what your exact requirement? If user not logged in, you want them to redirect on 404 page. Right? In short, you don't allow the guest user on your website. Right?
– Ravi Soni
Jul 1 at 12:45
Yes, you have to define it in config.xml. But what your exact requirement? If user not logged in, you want them to redirect on 404 page. Right? In short, you don't allow the guest user on your website. Right?
– Ravi Soni
Jul 1 at 12:45
Yes, that's right. I have page for example "my_page" and if i go to page.com/my_page i want to redirect to 404 if i'm not logged in.
– SebastianT
Jul 1 at 12:48
Yes, that's right. I have page for example "my_page" and if i go to page.com/my_page i want to redirect to 404 if i'm not logged in.
– SebastianT
Jul 1 at 12:48
It's a cms page?
– Ravi Soni
Jul 1 at 12:50
It's a cms page?
– Ravi Soni
Jul 1 at 12:50
|
show 2 more comments
2 Answers
2
active
oldest
votes
Try this one:
/app/etc/modules/Custom_Module.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<codePool>local</codePool>
<active>true</active>
</Custom_Module>
</modules>
</config>
/app/code/local/Custom/Module/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<version>0.0.1</version>
</Custom_Module>
</modules>
<global>
<models>
<custommodule>
<class>Custom_Module_Model</class>
</custommodule>
</models>
<helpers>
<custommodule>
<class>Custom_Module_Helper</class>
</custommodule>
</helpers>
</global>
<frontend>
<events>
<controller_action_predispatch>
<observers>
<Custom_Module_Model_Observer>
<type>singleton</type>
<class>custommodule/observer</class>
<method>noRoutUrl</method>
</Custom_Module_Model_Observer>
</observers>
</controller_action_predispatch>
</events>
</frontend>
</config>
/app/code/local/Custom/Module/Model/Observer.php
<?php
class Custom_Module_Model_Observer extends Varien_Event_Observer
public function noRoutUrl($observer)
if ((strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false) && (! Mage::getSingleton('customer/session')->isLoggedIn()))
Mage::app()->getResponse()->setRedirect('/no-route');
?>
/app/code/local/Custom/Module/Helper/Data.php
<?php
class Custom_Module_Helper_Data extends Mage_Core_Helper_Abstract
This the step you have to follow by creating all files
Thank You very much, it works perfect! Could you tell me, where can i find informations about "controller_action_predispatch" and others events. Where to find name of event which i want to use?
– SebastianT
Jul 1 at 13:24
Here is the link for all events: nicksays.co.uk/magento-events-cheat-sheet-1-9
– Ravi Soni
Jul 1 at 13:28
thank you a lot!
– SebastianT
Jul 2 at 5:45
add a comment |
You can try this below code:
<?php if (strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false && ! Mage::getSingleton('customer/session')->isLoggedIn())
Mage::app()->getResponse()->setRedirect('/no-route');
Hi, thanks for answer, could you explain please where to paste this code?
– SebastianT
Jul 1 at 12:59
@SebastianT, If You know how to use event observer in Magento then follow this link: magento.stackexchange.com/questions/181579/… and under the Observer.php add you r logic. which i have provided you.
– Saurabh Dwivedi
Jul 1 at 13:05
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f280316%2fdisable-page-for-not-logged-in-users%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try this one:
/app/etc/modules/Custom_Module.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<codePool>local</codePool>
<active>true</active>
</Custom_Module>
</modules>
</config>
/app/code/local/Custom/Module/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<version>0.0.1</version>
</Custom_Module>
</modules>
<global>
<models>
<custommodule>
<class>Custom_Module_Model</class>
</custommodule>
</models>
<helpers>
<custommodule>
<class>Custom_Module_Helper</class>
</custommodule>
</helpers>
</global>
<frontend>
<events>
<controller_action_predispatch>
<observers>
<Custom_Module_Model_Observer>
<type>singleton</type>
<class>custommodule/observer</class>
<method>noRoutUrl</method>
</Custom_Module_Model_Observer>
</observers>
</controller_action_predispatch>
</events>
</frontend>
</config>
/app/code/local/Custom/Module/Model/Observer.php
<?php
class Custom_Module_Model_Observer extends Varien_Event_Observer
public function noRoutUrl($observer)
if ((strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false) && (! Mage::getSingleton('customer/session')->isLoggedIn()))
Mage::app()->getResponse()->setRedirect('/no-route');
?>
/app/code/local/Custom/Module/Helper/Data.php
<?php
class Custom_Module_Helper_Data extends Mage_Core_Helper_Abstract
This the step you have to follow by creating all files
Thank You very much, it works perfect! Could you tell me, where can i find informations about "controller_action_predispatch" and others events. Where to find name of event which i want to use?
– SebastianT
Jul 1 at 13:24
Here is the link for all events: nicksays.co.uk/magento-events-cheat-sheet-1-9
– Ravi Soni
Jul 1 at 13:28
thank you a lot!
– SebastianT
Jul 2 at 5:45
add a comment |
Try this one:
/app/etc/modules/Custom_Module.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<codePool>local</codePool>
<active>true</active>
</Custom_Module>
</modules>
</config>
/app/code/local/Custom/Module/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<version>0.0.1</version>
</Custom_Module>
</modules>
<global>
<models>
<custommodule>
<class>Custom_Module_Model</class>
</custommodule>
</models>
<helpers>
<custommodule>
<class>Custom_Module_Helper</class>
</custommodule>
</helpers>
</global>
<frontend>
<events>
<controller_action_predispatch>
<observers>
<Custom_Module_Model_Observer>
<type>singleton</type>
<class>custommodule/observer</class>
<method>noRoutUrl</method>
</Custom_Module_Model_Observer>
</observers>
</controller_action_predispatch>
</events>
</frontend>
</config>
/app/code/local/Custom/Module/Model/Observer.php
<?php
class Custom_Module_Model_Observer extends Varien_Event_Observer
public function noRoutUrl($observer)
if ((strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false) && (! Mage::getSingleton('customer/session')->isLoggedIn()))
Mage::app()->getResponse()->setRedirect('/no-route');
?>
/app/code/local/Custom/Module/Helper/Data.php
<?php
class Custom_Module_Helper_Data extends Mage_Core_Helper_Abstract
This the step you have to follow by creating all files
Thank You very much, it works perfect! Could you tell me, where can i find informations about "controller_action_predispatch" and others events. Where to find name of event which i want to use?
– SebastianT
Jul 1 at 13:24
Here is the link for all events: nicksays.co.uk/magento-events-cheat-sheet-1-9
– Ravi Soni
Jul 1 at 13:28
thank you a lot!
– SebastianT
Jul 2 at 5:45
add a comment |
Try this one:
/app/etc/modules/Custom_Module.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<codePool>local</codePool>
<active>true</active>
</Custom_Module>
</modules>
</config>
/app/code/local/Custom/Module/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<version>0.0.1</version>
</Custom_Module>
</modules>
<global>
<models>
<custommodule>
<class>Custom_Module_Model</class>
</custommodule>
</models>
<helpers>
<custommodule>
<class>Custom_Module_Helper</class>
</custommodule>
</helpers>
</global>
<frontend>
<events>
<controller_action_predispatch>
<observers>
<Custom_Module_Model_Observer>
<type>singleton</type>
<class>custommodule/observer</class>
<method>noRoutUrl</method>
</Custom_Module_Model_Observer>
</observers>
</controller_action_predispatch>
</events>
</frontend>
</config>
/app/code/local/Custom/Module/Model/Observer.php
<?php
class Custom_Module_Model_Observer extends Varien_Event_Observer
public function noRoutUrl($observer)
if ((strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false) && (! Mage::getSingleton('customer/session')->isLoggedIn()))
Mage::app()->getResponse()->setRedirect('/no-route');
?>
/app/code/local/Custom/Module/Helper/Data.php
<?php
class Custom_Module_Helper_Data extends Mage_Core_Helper_Abstract
This the step you have to follow by creating all files
Try this one:
/app/etc/modules/Custom_Module.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<codePool>local</codePool>
<active>true</active>
</Custom_Module>
</modules>
</config>
/app/code/local/Custom/Module/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Custom_Module>
<version>0.0.1</version>
</Custom_Module>
</modules>
<global>
<models>
<custommodule>
<class>Custom_Module_Model</class>
</custommodule>
</models>
<helpers>
<custommodule>
<class>Custom_Module_Helper</class>
</custommodule>
</helpers>
</global>
<frontend>
<events>
<controller_action_predispatch>
<observers>
<Custom_Module_Model_Observer>
<type>singleton</type>
<class>custommodule/observer</class>
<method>noRoutUrl</method>
</Custom_Module_Model_Observer>
</observers>
</controller_action_predispatch>
</events>
</frontend>
</config>
/app/code/local/Custom/Module/Model/Observer.php
<?php
class Custom_Module_Model_Observer extends Varien_Event_Observer
public function noRoutUrl($observer)
if ((strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false) && (! Mage::getSingleton('customer/session')->isLoggedIn()))
Mage::app()->getResponse()->setRedirect('/no-route');
?>
/app/code/local/Custom/Module/Helper/Data.php
<?php
class Custom_Module_Helper_Data extends Mage_Core_Helper_Abstract
This the step you have to follow by creating all files
edited Jul 1 at 13:17
Saurabh Dwivedi
8662 silver badges9 bronze badges
8662 silver badges9 bronze badges
answered Jul 1 at 13:03
Ravi SoniRavi Soni
1,0315 silver badges18 bronze badges
1,0315 silver badges18 bronze badges
Thank You very much, it works perfect! Could you tell me, where can i find informations about "controller_action_predispatch" and others events. Where to find name of event which i want to use?
– SebastianT
Jul 1 at 13:24
Here is the link for all events: nicksays.co.uk/magento-events-cheat-sheet-1-9
– Ravi Soni
Jul 1 at 13:28
thank you a lot!
– SebastianT
Jul 2 at 5:45
add a comment |
Thank You very much, it works perfect! Could you tell me, where can i find informations about "controller_action_predispatch" and others events. Where to find name of event which i want to use?
– SebastianT
Jul 1 at 13:24
Here is the link for all events: nicksays.co.uk/magento-events-cheat-sheet-1-9
– Ravi Soni
Jul 1 at 13:28
thank you a lot!
– SebastianT
Jul 2 at 5:45
Thank You very much, it works perfect! Could you tell me, where can i find informations about "controller_action_predispatch" and others events. Where to find name of event which i want to use?
– SebastianT
Jul 1 at 13:24
Thank You very much, it works perfect! Could you tell me, where can i find informations about "controller_action_predispatch" and others events. Where to find name of event which i want to use?
– SebastianT
Jul 1 at 13:24
Here is the link for all events: nicksays.co.uk/magento-events-cheat-sheet-1-9
– Ravi Soni
Jul 1 at 13:28
Here is the link for all events: nicksays.co.uk/magento-events-cheat-sheet-1-9
– Ravi Soni
Jul 1 at 13:28
thank you a lot!
– SebastianT
Jul 2 at 5:45
thank you a lot!
– SebastianT
Jul 2 at 5:45
add a comment |
You can try this below code:
<?php if (strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false && ! Mage::getSingleton('customer/session')->isLoggedIn())
Mage::app()->getResponse()->setRedirect('/no-route');
Hi, thanks for answer, could you explain please where to paste this code?
– SebastianT
Jul 1 at 12:59
@SebastianT, If You know how to use event observer in Magento then follow this link: magento.stackexchange.com/questions/181579/… and under the Observer.php add you r logic. which i have provided you.
– Saurabh Dwivedi
Jul 1 at 13:05
add a comment |
You can try this below code:
<?php if (strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false && ! Mage::getSingleton('customer/session')->isLoggedIn())
Mage::app()->getResponse()->setRedirect('/no-route');
Hi, thanks for answer, could you explain please where to paste this code?
– SebastianT
Jul 1 at 12:59
@SebastianT, If You know how to use event observer in Magento then follow this link: magento.stackexchange.com/questions/181579/… and under the Observer.php add you r logic. which i have provided you.
– Saurabh Dwivedi
Jul 1 at 13:05
add a comment |
You can try this below code:
<?php if (strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false && ! Mage::getSingleton('customer/session')->isLoggedIn())
Mage::app()->getResponse()->setRedirect('/no-route');
You can try this below code:
<?php if (strpos(Mage::helper('core/url')->getCurrentUrl(),'my_page') != false && ! Mage::getSingleton('customer/session')->isLoggedIn())
Mage::app()->getResponse()->setRedirect('/no-route');
answered Jul 1 at 12:52
Saurabh DwivediSaurabh Dwivedi
8662 silver badges9 bronze badges
8662 silver badges9 bronze badges
Hi, thanks for answer, could you explain please where to paste this code?
– SebastianT
Jul 1 at 12:59
@SebastianT, If You know how to use event observer in Magento then follow this link: magento.stackexchange.com/questions/181579/… and under the Observer.php add you r logic. which i have provided you.
– Saurabh Dwivedi
Jul 1 at 13:05
add a comment |
Hi, thanks for answer, could you explain please where to paste this code?
– SebastianT
Jul 1 at 12:59
@SebastianT, If You know how to use event observer in Magento then follow this link: magento.stackexchange.com/questions/181579/… and under the Observer.php add you r logic. which i have provided you.
– Saurabh Dwivedi
Jul 1 at 13:05
Hi, thanks for answer, could you explain please where to paste this code?
– SebastianT
Jul 1 at 12:59
Hi, thanks for answer, could you explain please where to paste this code?
– SebastianT
Jul 1 at 12:59
@SebastianT, If You know how to use event observer in Magento then follow this link: magento.stackexchange.com/questions/181579/… and under the Observer.php add you r logic. which i have provided you.
– Saurabh Dwivedi
Jul 1 at 13:05
@SebastianT, If You know how to use event observer in Magento then follow this link: magento.stackexchange.com/questions/181579/… and under the Observer.php add you r logic. which i have provided you.
– Saurabh Dwivedi
Jul 1 at 13:05
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f280316%2fdisable-page-for-not-logged-in-users%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You mean if user not logged in you want to redirect them to 404 page ?
– Ravi Soni
Jul 1 at 12:37
@RaviSoni, thank you for your comment. Unfortunately I'm new to magento. Correct me if i'm wrong. I have to create custom module for that? And in config.xml I have to define events?
– SebastianT
Jul 1 at 12:41
Yes, you have to define it in config.xml. But what your exact requirement? If user not logged in, you want them to redirect on 404 page. Right? In short, you don't allow the guest user on your website. Right?
– Ravi Soni
Jul 1 at 12:45
Yes, that's right. I have page for example "my_page" and if i go to page.com/my_page i want to redirect to 404 if i'm not logged in.
– SebastianT
Jul 1 at 12:48
It's a cms page?
– Ravi Soni
Jul 1 at 12:50