Sometimes, when opening a Magento product page, the following error is shown: Parse error: syntax error, unexpected ‘endif’ (T_ENDIF) in … The problem here is not with the Magento code itself. Its a problem with the Apache server configuration. To…
Removing slash at the end of a URL (Magento 1)
Open your .htaccess file in the Magento root directory and add those lines:
1 2 3 |
RewriteCond %{request_method} ^GET$ RewriteCond %{REQUEST_URI} ^(.+)/$ RewriteRule ^(.+)$ %1 [L,R=301] |