0

I have a custom controller page :

http://dev.test/myfrontend/

The above works fine. also the bellow one works

http://dev.test/myfrontend/index/index/

Now if I add query string:

http://dev.test/myfrontend/index/index/viewid/2

this loads the page fine and I can get parameters fine

But if I load like the this:

http://dev.test/myfrontend/viewid/2 // It fail Miserably goes 404

This should work without adding /index/index !

Does anyone have nay idea ?

Thanks

1 Answer 1

0
  • Go to marketing > url rewrite > add url rewrite
  • under request path adding myfrontend/viewid
  • under target path add myfrontend/index/index/viewid
1
  • Thanks but that's not what I looking for I should mention the the viewid is dinamic so it can any anything like ../banana/3 Commented Nov 1, 2018 at 13:52

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.