JezK
Edit File: .htaccess
RewriteOptions inherit ## No directory listings # <IfModule mod_autoindex.c> # IndexIgnore * # </IfModule> # Redirect to HTTPS # RewriteCond %{HTTPS} !=on # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # redirect from non-https or non-www to https://www RewriteCond %{HTTP_HOST} !^www\. [NC,OR] RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC] RewriteRule ^ https://www.%1%{REQUEST_URI} [R=301,L,NE] # Error handling ErrorDocument 400 /error ErrorDocument 401 /error ErrorDocument 402 /error ErrorDocument 403 /error ErrorDocument 404 /error RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L] RewriteRule ^product-sitemap.xml$ index.php?route=extension/feed/google_sitemap/product [L] RewriteRule ^category-sitemap.xml$ index.php?route=extension/feed/google_sitemap/category [L] RewriteRule ^information-sitemap.xml$ index.php?route=extension/feed/google_sitemap/information [L] RewriteRule ^blog-sitemap.xml$ index.php?route=extension/feed/google_sitemap/blog [L] # RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L] # RewriteRule ^system/download/(.*) index.php?route=error/not_found [L] # RewriteCond %{REQUEST_FILENAME} !-f # RewriteCond %{REQUEST_FILENAME} !-d # RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css) # RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] ## SEO URL Settings RewriteEngine On ## If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/ RewriteBase / ## Rewrite Rules RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|webp|js|css|svg) RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA] # <IfModule mod_expires.c> # ExpiresActive on # ExpiresDefault "access plus 1 month" # ExpiresByType text/cache-manifest "access plus 0 seconds" # ExpiresByType text/html "access plus 0 seconds" # ExpiresByType text/xml "access plus 0 seconds" # ExpiresByType text/x-javascript "access plus 0 seconds" # ExpiresByType application/pdf "access plus 0 seconds" # ExpiresByType application/xml "access plus 0 seconds" # ExpiresByType application/json "access plus 0 seconds" # ExpiresByType application/rss+xml "access plus 1 hour" # ExpiresByType application/atom+xml "access plus 1 hour" # ExpiresByType image/x-icon "access plus 1 week" # ExpiresByType image/gif "access plus 1 week" # ExpiresByType image/png "access plus 1 week" # ExpiresByType image/jpeg "access plus 1 week" # ExpiresByType image/jpg "access plus 1 week" # ExpiresByType video/ogg "access plus 1 month" # ExpiresByType audio/ogg "access plus 1 month" # ExpiresByType video/mp4 "access plus 1 month" # ExpiresByType video/webm "access plus 1 month" # ExpiresByType text/x-component "access plus 1 month" # ExpiresByType application/x-font-ttf "access plus 1 month" # ExpiresByType font/opentype "access plus 1 month" # ExpiresByType application/x-font-woff "access plus 1 month" # ExpiresByType image/svg+xml "access plus 1 month" # ExpiresByType application/vnd.ms-fontobject "access plus 1 month" # ExpiresByType text/css "access plus 1 week" # ExpiresByType application/javascript "access plus 1 year" # ExpiresByType application/x-shockwave-flash "access plus 1 week" # </IfModule> # <filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$"> # Header set Cache-Control "max-age=2592000, public" # </filesMatch> # Enable caching for images <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/gif "access plus 1 year" </IfModule> # Enable caching for CSS and JavaScript files # <IfModule mod_headers.c> # <FilesMatch "\.(js|css)$"> # Header set Cache-Control "public, max-age=31536000" # </FilesMatch> # </IfModule> # BEGIN cPanel-generated php ini directives, do not edit # Manual editing of this file may result in unexpected behavior. # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) <IfModule php5_module> php_value default_charset "UTF-8" php_value memory_limit 512M php_value max_execution_time 36000 php_value upload_max_filesize 999M php_value mysql.connect_timeout 20 php_flag session.auto_start Off php_flag session.use_only_cookies On php_flag session.use_cookies On php_flag session.use_trans_sid Off php_value session.cookie_httponly "On;" php_value session.gc_maxlifetime 3600 php_flag short_open_tag On php_flag display_errors On php_value error_reporting E_ALL php_flag asp_tags On php_value max_input_time 36000 php_value max_input_vars 10000 php_value post_max_size 999M php_value session.save_path "/var/cpanel/php/sessions/ea-php56" php_flag zlib.output_compression Off </IfModule> <IfModule lsapi_module> php_value default_charset "UTF-8" php_value memory_limit 512M php_value max_execution_time 36000 php_value upload_max_filesize 999M php_value mysql.connect_timeout 20 php_flag session.auto_start Off php_flag session.use_only_cookies On php_flag session.use_cookies On php_flag session.use_trans_sid Off php_value session.cookie_httponly "On;" php_value session.gc_maxlifetime 3600 php_flag short_open_tag On php_flag display_errors On php_value error_reporting E_ALL php_flag asp_tags On php_value max_input_time 36000 php_value max_input_vars 10000 php_value post_max_size 999M php_value session.save_path "/var/cpanel/php/sessions/ea-php56" php_flag zlib.output_compression Off </IfModule> # END cPanel-generated php ini directives, do not edit <Files 403.shtml> order allow,deny allow from all </Files> <IfModule mod_headers.c> Header add Access-Control-Allow-Origin "*" </IfModule> # BEGIN cPanel-generated php ini directives, do not edit # Manual editing of this file may result in unexpected behavior. # To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor) # For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI) <IfModule php7_module> php_value default_charset "UTF-8" php_value memory_limit 512M php_value max_execution_time 36000 php_value upload_max_filesize 999M php_value mysql.connect_timeout 20 php_flag session.auto_start Off php_flag session.use_only_cookies On php_flag session.use_cookies On php_flag session.use_trans_sid Off php_value session.cookie_httponly "On;" php_value session.gc_maxlifetime 3600 php_flag short_open_tag On php_flag display_errors On php_value error_reporting E_ALL php_value max_input_time 36000 php_value max_input_vars 10000 php_value post_max_size 999M php_value session.save_path "/var/cpanel/php/sessions/alt-php73" php_flag zlib.output_compression Off </IfModule> <IfModule lsapi_module> php_value default_charset "UTF-8" php_value memory_limit 512M php_value max_execution_time 36000 php_value upload_max_filesize 999M php_value mysql.connect_timeout 20 php_flag session.auto_start Off php_flag session.use_only_cookies On php_flag session.use_cookies On php_flag session.use_trans_sid Off php_value session.cookie_httponly "On;" php_value session.gc_maxlifetime 3600 php_flag short_open_tag On php_flag display_errors On php_value error_reporting E_ALL php_value max_input_time 36000 php_value max_input_vars 10000 php_value post_max_size 999M php_value session.save_path "/var/cpanel/php/sessions/alt-php73" php_flag zlib.output_compression Off </IfModule> # END cPanel-generated php ini directives, do not edit deny from 180.254.75.244 deny from 144.76.68.17 deny from 182.8.212.130 # php -- BEGIN cPanel-generated handler, do not edit # Set the “alt-php73” package as the default “PHP” programming language. <IfModule mime_module> AddHandler application/x-httpd-alt-php73___lsphp .php .php7 .phtml </IfModule> # php -- END cPanel-generated handler, do not edit