B
B
BonBon Slick2016-07-31 00:58:50
Apache HTTP Server
BonBon Slick, 2016-07-31 00:58:50

The admin panel stopped working and the site ( wordpress ) began to load for a very long time after working with .htaccess, what have I done?

Guys, it's one in the morning, I was optimizing the site, everything was perfect, from 35 seconds it reached 10 - 11, and then, when keep-alive was activated in .htaccess, either I accidentally deleted it, or something, I already started to get stupid, I thought the serv flew, preloaded everything, cleaned the cache. But nefiga, the admin panel stopped working, there is no backup .htaccess and I don’t see what I changed, I don’t remember how it was. What is wrong with this accessory, please tell me?

# BEGIN W3TC Browser Cache

<IfModule mod_deflate.c>

  <IfModule mod_headers.c>
    Header append Vary User-Agent env=!dont-vary
  </IfModule>
  <IfModule mod_filter.c>
  AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
    <IfModule mod_mime.c>
      # DEFLATE by extension
      AddOutputFilter DEFLATE js css htm html xml
    </IfModule>
  </IfModule>

</IfModule>

# END W3TC Browser Cache
# BEGIN W3TC Page Cache core

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteCond %{HTTPS} =on
  RewriteRule .* - [E=W3TC_SSL:_ssl]
  RewriteCond %{SERVER_PORT} =443
  RewriteRule .* - [E=W3TC_SSL:_ssl]
  RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
  RewriteRule .* - [E=W3TC_PREVIEW:_preview]
  RewriteCond %{REQUEST_METHOD} !=POST
  RewriteCond %{QUERY_STRING} =""
  RewriteCond %{REQUEST_URI} \/$
  RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
  RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" -f
  RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html" [L]
</IfModule>

# END W3TC Page Cache core
# BEGIN WordPress

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Answer the question

In order to leave comments, you need to log in

3 answer(s)
B
BonBon Slick, 2016-08-03
@BonBonSlick

Windows flew off ... what exactly was the trouble, without a clue. I reinstalled Windows, everything is ok, and the computer began to work faster.

M
mletov, 2016-07-31
@mletov

Back up the current file.
Take a clean distribution of Wordpress, download .htaccess from it and replace it on the server.
This may not be the most correct, but the fastest way to solve the problem, unless, of course, the problem is really in .htaccess
. And for the purpose of self-education, you can also compare both versions of the files.

P
Pavel K, 2016-07-31
@PavelK

I don't see anything wrong with .htaccess, except that Apache modules are not enabled.
I don't think it's about him.
Just in case, the base looks like this:

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.php$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.php [L]
</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question