Advertisement
hjysy

Help me deleting redirect of my site

Jun 6th, 2020
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1. Help me deleting redirect of my site
  2. i have a small issue with my site.
  3. ++++++++++++++
  4. list of top cheapest host http://Listfreetop.pw
  5.  
  6. Top 200 best traffic exchange sites http://Listfreetop.pw
  7.  
  8. free link exchange sites list http://Listfreetop.pw
  9. list of top ptc sites
  10. list of top ptp sites
  11. Listfreetop.pw
  12. Listfreetop.pw
  13. +++++++++++++++
  14. my www version is redirecting properly to https version
  15. but my non-www version has TWO redirects, first to non www https version then to https www version.
  16. I am checking my htaccess since hours but cant find the mistake, this is my htaccess (domain replaced with domain.com):
  17.  
  18. Code:
  19. # BEGIN WpFastestCache
  20. <IfModule mod_rewrite.c>
  21. RewriteEngine On
  22. RewriteBase /
  23. RewriteCond %{HTTPS_HOST} ^my-domain.com
  24. RewriteRule ^(.*)$ https\:\/\/www\.my\-domain\.com\/$1 [R=301,L]
  25. # Start WPFC Exclude
  26. # End WPFC Exclude
  27. # Start_WPFC_Exclude_Admin_Cookie
  28. RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\=admin.john
  29. # End_WPFC_Exclude_Admin_Cookie
  30. RewriteCond %{HTTPS_HOST} ^www.my-domain.net
  31. RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|LinkedInBot|WhatsApp|Mediatoolkitbot)
  32. RewriteCond %{HTTP_USER_AGENT} !(WP\sFastest\sCache\sPreload(\siPhone\sMobile)?\s*Bot)
  33. RewriteCond %{REQUEST_METHOD} !POST
  34. RewriteCond %{HTTPS} !=on
  35. RewriteCond %{REQUEST_URI} !(\/){2}$
  36. RewriteCond %{REQUEST_URI} \/$
  37. RewriteCond %{QUERY_STRING} !.+
  38. RewriteCond %{HTTP:Cookie} !wordpress_logged_in
  39. RewriteCond %{HTTP:Cookie} !comment_author_
  40. RewriteCond %{HTTP:Cookie} !woocommerce_items_in_cart
  41. RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil
  42. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  43. RewriteCond %{HTTP_USER_AGENT} !^.*(\bCrMo\b|CriOS|Android.*Chrome\/[.0-9]*\s(Mobile)?|\bDolfin\b|Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR\/[0-9.]+|Coast\/[0-9.]+|Skyfire|Mobile\sSafari\/[.0-9]*\sEdge|IEMobile|MSIEMobile|fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile|FxiOS|bolt|teashark|Blazer|Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari|Tizen|UC.*Browser|UCWEB|baiduboxapp|baidubrowser|DiigoBrowser|Puffin|\bMercury\b|Obigo|NF-Browser|NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger|Android.*PaleMoon|Mobile.*PaleMoon|Android|blackberry|\bBB10\b|rim\stablet\sos|PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino|Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\bS60\b|Windows\sCE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window\sMobile|Windows\sPhone\s[0-9.]+|WCE;|Windows\sPhone\s10.0|Windows\sPhone\s8.1|Windows\sPhone\s8.0|Windows\sPhone\sOS|XBLWP7|ZuneWP7|Windows\sNT\s6\.[23]\;\sARM\;|\biPhone.*Mobile|\biPod|\biPad|Apple-iPhone7C2|MeeGo|Maemo|J2ME\/|\bMIDP\b|\bCLDC\b|webOS|hpwOS|\bBada\b|BREW).*$ [NC]
  44. RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
  45. RewriteCond /home/user123/public_html/wp-content/cache/all/$1/index.html -f
  46. RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
  47. </IfModule>
  48. <FilesMatch "index\.(html|htm)$">
  49. AddDefaultCharset UTF-8
  50. <ifModule mod_headers.c>
  51. FileETag None
  52. Header unset ETag
  53. Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
  54. Header set Pragma "no-cache"
  55. Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
  56. </ifModule>
  57. </FilesMatch>
  58. # END WpFastestCache
  59. # BEGIN GzipWpFastestCache
  60. <IfModule mod_deflate.c>
  61. AddType x-font/woff .woff
  62. AddType x-font/ttf .ttf
  63. AddOutputFilterByType DEFLATE image/svg+xml
  64. AddOutputFilterByType DEFLATE text/plain
  65. AddOutputFilterByType DEFLATE text/html
  66. AddOutputFilterByType DEFLATE text/xml
  67. AddOutputFilterByType DEFLATE text/css
  68. AddOutputFilterByType DEFLATE text/javascript
  69. AddOutputFilterByType DEFLATE application/xml
  70. AddOutputFilterByType DEFLATE application/xhtml+xml
  71. AddOutputFilterByType DEFLATE application/rss+xml
  72. AddOutputFilterByType DEFLATE application/javascript
  73. AddOutputFilterByType DEFLATE application/x-javascript
  74. AddOutputFilterByType DEFLATE application/x-font-ttf
  75. AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  76. AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
  77. </IfModule>
  78. # END GzipWpFastestCache
  79. # BEGIN LBCWpFastestCache
  80. <FilesMatch "\.(webm|ogg|mp4|ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|ttf|svg|eot)(\.gz)?$">
  81. <IfModule mod_expires.c>
  82. AddType application/font-woff2 .woff2
  83. ExpiresActive On
  84. ExpiresDefault A0
  85. ExpiresByType video/webm A2592000
  86. ExpiresByType video/ogg A2592000
  87. ExpiresByType video/mp4 A2592000
  88. ExpiresByType image/webp A2592000
  89. ExpiresByType image/gif A2592000
  90. ExpiresByType image/png A2592000
  91. ExpiresByType image/jpg A2592000
  92. ExpiresByType image/jpeg A2592000
  93. ExpiresByType image/ico A2592000
  94. ExpiresByType image/svg+xml A2592000
  95. ExpiresByType text/css A2592000
  96. ExpiresByType text/javascript A2592000
  97. ExpiresByType application/javascript A2592000
  98. ExpiresByType application/x-javascript A2592000
  99. ExpiresByType application/font-woff2 A2592000
  100. </IfModule>
  101. <IfModule mod_headers.c>
  102. Header set Expires "max-age=2592000, public"
  103. Header unset ETag
  104. Header set Connection keep-alive
  105. FileETag None
  106. </IfModule>
  107. </FilesMatch>
  108. # END LBCWpFastestCache
  109. # BEGIN WordPress
  110. <IfModule mod_rewrite.c>
  111. RewriteEngine On
  112. RewriteBase /
  113. RewriteRule ^index\.php$ - [L]
  114. RewriteCond %{REQUEST_FILENAME} !-f
  115. RewriteCond %{REQUEST_FILENAME} !-d
  116. RewriteRule . /index.php [L]
  117. </IfModule>
  118. # END WordPress
  119. hope you can help me :)
  120.  
  121. community.mybb.com
  122. 6 hostage negotiation techniques
  123. www.domain.com
  124. domain 900mm oven
  125. www.rapidfireads.com
  126. host 330th
  127. websurf.ru
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement