Hi I have setup 3 sub directories for my stores and added symlinks each with app, pub, var, lib folders.
/root/store1 (/app, /pub, /var, /lib )
/root/store2 (/app, /pub, /var, /lib )
/root/store3 (/app, /pub, /var, /lib )
However, there's no way to edit the css style of /root/store1/css separately style with other stores. Everytime, I edit store1 css, ...
Actually all request redirected to the index.php which internally uses $_SERVER['REQUEST_URI'] to determine what page or resource actually requested.
Above htaccess will just redirect the request to /result/ but to index.php $_SERVER['REQUEST_URI'] will remain /demo/test
What you can do is add below code to your index.php it will do the trick
I faced the issue and it took me almost a day to resolve.
There are multiple solutions, I tried all possible solutions but there was no luck.
Magento 2.1 Admin Url not found on the server
Magento 2 - Localhost - Admin URL returning 404
Not Found The requested URL was not found on this server
Many questions but one solution.
Simply at the root of your ...
Thank you for replying to my question!
Indeed, this is a proper solution, but I would like to avoid generating new rewrites and somehow do this through the code.
I am close by using an observer for the 'controller_front_send_response_before' event, having the following code.
$fullUrl = $this->_urlInterface->getCurrentUrl();
$baseUrl = $this->...
Cause of the issue: corrupted data in the database. The url rewrite which is responsible for product request_path has a column 'is_autogenerated' set to 0.
Using the next query you can find the list of products which has a similar issue:
select * from url_rewrite where entity_type = 'product' and redirect_type = 0 and is_autogenerated = 0 and (metadata is ...