Posted - 12/07/2020 : 08:39:12
Have I put it in the right place? Hasn't worked here, or with it at the very bottom.
[code] Options +FollowSymlinks -Multiviews -Indexes <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} ^prod=Playable%20Battle%20Robot%20Kits$ RewriteRule ^products\.php$ /proddetail.php?prod=PBRK RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^category/([^/.]*)/?$ /categories.php?cat=$1 [QSA,nc,L,B] RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^products/([^/.]*)/?$ /products.php?cat=$1 [QSA,nc,L,B] RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^manufacturer/([^/.]*)/?$ /manufacturer.php?man=$1 [QSA,nc,L,B] RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^([^/.]+)$ proddetail.php?prod=$1 [QSA,nc,L,B] </IfModule>
## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/html "access plus 1 seconds" </IfModule> ## EXPIRES CACHING ##
## BEGIN Cache-Control Headers <ifModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" Header always append X-Frame-Options SAMEORIGIN Header set X-Content-Type-Options nosniff <filesMatch "\.(ico|jpe?g|png|gif|swf)$"> Header set Cache-Control "public" </filesMatch> </ifModule> ## END Cache-Control Headers RewriteCond %{HTTP_HOST} ^fingertechrobotics\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.fingertechrobotics\.com$ RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^(.*)$ "https\:\/\/www\.fingertechrobotics\.com\/$1" [R=301,L] RewriteCond %{HTTP_HOST} ^fingertechrobotics\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.fingertechrobotics\.com$ RewriteRule ^\/products\.php\?cat\=Playable\+Battle\+Robot\+Kits$ "https\:\/\/www\.fingertechrobotics\.com\/proddetail\.php\?prod\=PBRK" [R=301,L] [/code]
|