1

I want to change frontend URL

www.example.com/catalogsearch/advanced

to

www.example.com/testurl

in magento2.

Also, How can I use the advanced search on any CMS page.

2 Answers 2

1

You can use Magento rewrites to change urls.
Go to Admin Panel -> Marketing -> SEO & Search -> URL Rewrites .

-1

You can change the frontend URL from the xml

Path: app/code/[VendorName]/[ModuleName]/etc/routes.xml

Like below:

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:App/etc/routes.xsd">
    <router id="standard">
        <route id="catalogsearch" frontName="testurl">
            <module name="VendorName_CatalogSearch" />
        </route>
    </router>
</config>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.