Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize PageNotFoundController image resolving logic with .htaccess rules. Correctly configured apache and/or nginx should handler image friendly urls directly. For example, apache should use .htaccess file to resolve request for image uri: /127-Niara_home/product-name.jpg If the apache/nginx is misconfigured, or if the image version is missing, apache will forward request to php server, and it will be hanled by PageNotFound controller. This is responsible for returning image, if it exists. There were few differences between .htaccess rules and controller logic 1) controller did not support whitespaces in image types 2) controller was unable to respond to request for source images without image type, ie /127/product-name.jpg 3) image name was restricted to letters only. Controller correctly responsed for request /127-home/name.jpg, but failed to resolve url /127/127.jpg This commit fixes all those issues
- Loading branch information
1 parent
7932b9a
commit 6334306
Showing
1 changed file
with
63 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters