cancel
Showing results for 
Search instead for 
Did you mean: 

multiple redirects

multiple redirects

Hello, i wonder if i can do multiple redirects from magento 2.3.2 admin page

 

i need to redirect all from specific urls

domain/a/* to domain/a

domain/b/* to domain/b etc

 

how it will be the syntax for this?

3 REPLIES 3

Re: multiple redirects

Hi @pantelisgr 

 

If you are using apache server then you can make changes in .htaccess file which you can find on your root of magento.

 

Thanks!

Re: multiple redirects

Hello @pantelisgr 

 

Here is one beautiful tool to generate the htaccess redirect 

https://www.aleydasolis.com/htaccess-redirects-generator/domain-to-domain/

 

You can find which one you are looking for and try it.

Was my answer helpful? You can accept it as a solution.
175+ Professional Extensions for M1 & M2
Need a developer?Just visit Contact Us Now

Re: multiple redirects

Hello @pantelisgr 

 

There is an option in admin, for add your old url to new url for redirect.
Admin=>Marketing=>URL Rewrites

But you can't  use this concept for domain/a/ to domain/b.
So please use the .htaccess, if you are using the Apache server and go with @theMageComp suggestion.
And if you use are using the nginx, refer this.

https://stackoverflow.com/questions/6045020/how-to-redirect-to-a-different-domain-using-nginx

 

If my answer is useful, please Accept as Solution & give Kudos