magento 2.4.2 modules wont work

this is registration.php


use MagentoFrameworkComponentComponentRegistrar;

ComponentRegistrar::register(ComponentRegistrar::MODULE,'Mymodule_Newmodule1', __DIR__);

routes.xml file is here

<?xml version="1.0"?>
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
<config xmlns:xsi="" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
        <route id="module1" frontName="module1">
            <module name="Mymodule_Newmodule1" />

here is the controller file


namespace MymodulesNewmodule1ControllerPage;

class Helloworld extends MagentoFrameworkAppActionAction

    protected $_pageFactory;
    public function __construct(
        MagentoFrameworkAppActionContext $context,
        MagentoFrameworkViewResultPageFactory $pageFactory
    ) {
        $this->_pageFactory = $pageFactory;
        return parent::__construct($context);
    public function execute()
        echo "Hello world";

when i check in browser it show 404

my base url newsite.new1
newsite.new1/module1/page/helloworld returns 404

Go to Source of this post
Author Of this post: pon aravind
Title Of post: magento 2.4.2 modules wont work
Author Link: {authorlink}