When using NGINX for static content acceleration in PrestaShop and Magento, one common issue that can arise is the breaking of friendly URLs.
Friendly URLs are user-friendly and search-engine-optimized URLs that enhance the website's usability and SEO. However, NGINX's configuration may not be compatible with the URL rewriting rules used by these e-commerce platforms. This can result in broken or inaccessible pages or images when accessing friendly URLs.
To resolve this issue, static content acceleration or friendly URLs can be disabled on any of our hosting plans.
An example of a PrestaShop site with broken images due to NGINX static content acceleration can be seen here.
Related Articles
Magento Best Practices
Using Cache Manager in cPanel
Disable Accelerate Static Content
- Log into the cPanel
- Navigate to the Cache Manager, located under Software
- Select the affected domain
- Click the Options tab
- Click Show Advanced Options
- Select Disable next to Accelerate static content
- Click Save Changes
- Visit the site again to ensure the issue is resolved
Disable Friendly URLs in PrestaShop
- Log into the PrestaShop dashboard
- Expand Shop Parameters, under Configure
- Click Traffic & SEO
- Scroll down to the Set up URLs section
- Toggle Friendly URLs to No
- Click Save
- Visit the site again to ensure the issue is resolved
TIP: The NGINX cache or browser cache may need to be cleared first.
Disable Friendly URLs in Magento
- Log into the Magento dashboard
- Expand Stores
- Click Configuration
- Select Web under General
- Expand Search Engine Optimization
- Select No for Use Web Server Rewrites
- Click Save Config near the top of the page
- Visit the site again to ensure the issue is resolved
TIP: The NGINX cache or browser cache may need to be cleared first.
Comments
0 comments
Article is closed for comments.