title: This is my .htaccess file and I would like to:
body: <p>...remove the trailing slashed for avoiding duplicated content. I have also added some code to the below .htaccess file to prefer an URL without www. My WordPress site is <a href="https://eniyibahiscasinositeleri.com" rel="nofollow noreferrer">https://eniyibahiscasinositeleri.com</a>. I am using SSL certificate. Did I do right below? Or are there any unneeded or wrong codes?</p>
  
  <p>I have tried to add the recommended lines (on the similar post here) to the code but had the below error:</p>
  
  <p>This page isn’t working
  eniyibahiscasinositeleri.com redirected you too many times.
  Try clearing your cookies.
  ERR_TOO_MANY_REDIRECTS</p>
  
  <p>Let me summarize the above :) I need to remove the trailing slashed at the end of all URLs of the site. And I would like to use https:// without "www". I mean a naked URL.</p>
  
  <p>Which parts should I modify below?</p>
  
  <p>Thanks a lot in advance for your priceless help and support.</p>
  
  <pre><code># BEGIN WpFastestCache
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteCond %{HTTP_HOST} ^www.eniyibahiscasinositeleri.com [NC]
  RewriteRule ^(.*)$ http\:\/\/eniyibahiscasinositeleri\.com\/$1 [R=301,L]
  # Start WPFC Exclude
  # End WPFC Exclude
  # Start_WPFC_Exclude_Admin_Cookie
  RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\=eniyibah|sedatzekiekercili
  # End_WPFC_Exclude_Admin_Cookie
  RewriteCond %{HTTP_HOST} ^eniyibahiscasinositeleri.com
  RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WhatsApp|Mediatoolkitbot)
  RewriteCond %{REQUEST_METHOD} !POST
  RewriteCond %{HTTPS} !=on
  RewriteCond %{REQUEST_URI} !(\/){2}$
  RewriteCond %{REQUEST_URI} \/$
  RewriteCond %{QUERY_STRING} !.+
  RewriteCond %{HTTP:Cookie} !comment_author_
  RewriteCond %{HTTP:Cookie} !wp_woocommerce_session
  RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil
  RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
  RewriteCond /home/eniyibah/public_html/wp-content/cache/all/$1/index.html -f
  RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
  &lt;/IfModule&gt;
  &lt;FilesMatch "index\.(html|htm)$"&gt;
  AddDefaultCharset UTF-8
  &lt;ifModule mod_headers.c&gt;
  FileETag None
  Header unset ETag
  Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
  Header set Pragma "no-cache"
  Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
  &lt;/ifModule&gt;
  &lt;/FilesMatch&gt;
  # END WpFastestCache
  # BEGIN GzipWpFastestCache
  &lt;IfModule mod_deflate.c&gt;
  AddType x-font/woff .woff
  AddType x-font/ttf .ttf
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
  &lt;/IfModule&gt;
  # END GzipWpFastestCache
  # BEGIN LBCWpFastestCache
  &lt;FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$"&gt;
  &lt;IfModule mod_expires.c&gt;
  AddType application/font-woff2 .woff2
  ExpiresActive On
  ExpiresDefault A0
  ExpiresByType image/webp A2592000
  ExpiresByType image/gif A2592000
  ExpiresByType image/png A2592000
  ExpiresByType image/jpg A2592000
  ExpiresByType image/jpeg A2592000
  ExpiresByType image/ico A2592000
  ExpiresByType image/svg+xml A2592000
  ExpiresByType text/css A2592000
  ExpiresByType text/javascript A2592000
  ExpiresByType application/javascript A2592000
  ExpiresByType application/x-javascript A2592000
  ExpiresByType application/font-woff2 A2592000
  &lt;/IfModule&gt;
  &lt;IfModule mod_headers.c&gt;
  Header set Expires "max-age=2592000, public"
  Header unset ETag
  Header set Connection keep-alive
  FileETag None
  &lt;/IfModule&gt;
  &lt;/FilesMatch&gt;
  # END LBCWpFastestCache
  
  # BEGIN WordPress
  &lt;IfModule mod_expires.c&gt;
      ExpiresActive On
      ExpiresByType image/jpg "access plus 6 hours"
      ExpiresByType image/jpeg "access plus 6 hours"
      ExpiresByType image/gif "access plus 6 hours"
      ExpiresByType image/png "access plus 6 hours"
      ExpiresByType text/css "access plus 6 hours"
      ExpiresByType application/pdf "access plus 1 week"
      ExpiresByType text/javascript "access plus 6 hours"
      ExpiresByType text/html "access plus 10 minutes"
      ExpiresByType image/x-icon "access plus 1 year"
      ExpiresDefault "access plus 3 hours"
  &lt;/IfModule&gt;
  Header set X-Endurance-Cache-Level "2"
  &lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
  &lt;/IfModule&gt;
  
  # END WordPress
  </code></pre>