Skip to main content
added 28 characters in body
Source Link
O.Petrov
  • 175
  • 4
  • 10

I need to set some url rewrites for different pages. But when I started my CLI script, I had some issue "Request Path for Specified Store already exists." That's why I need to delete this url rewrite before. How can I do it programmatically.

Option to find this URL must be "Request Path", because ID of this url can be different on the test server and live site.

ThanksPlease provide me, how can I do it.

I need to set some url rewrites for different pages. But when I started my CLI script, I had some issue "Request Path for Specified Store already exists." That's why I need to delete this url rewrite before. How can I do it programmatically.

Option to find this URL must be "Request Path", because ID of this url can be different on the test server and live site.

Thanks.

I need to set some url rewrites for different pages. But when I started my CLI script, I had some issue "Request Path for Specified Store already exists." That's why I need to delete this url rewrite before. How can I do it programmatically.

Option to find this URL must be "Request Path", because ID of this url can be different on the test server and live site.

Please provide me, how can I do it.

Source Link
O.Petrov
  • 175
  • 4
  • 10

Delete url rewrite programmatically

I need to set some url rewrites for different pages. But when I started my CLI script, I had some issue "Request Path for Specified Store already exists." That's why I need to delete this url rewrite before. How can I do it programmatically.

Option to find this URL must be "Request Path", because ID of this url can be different on the test server and live site.

Thanks.