latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

My site was crashed due to htaccess changing

Home › Forums › Community Forum › My site was crashed due to htaccess changing

This topic contains 0 replies, has 1 voice. Last updated by  Alexander Deyneko 3 years, 2 months ago.

Topic Author Topic
Posted: Friday Nov 8th, 2013 at 11:39 am #60945

Hi,
I have multisite (deyneko.com). I use multisite for multilingual WP i.e. different languages in subdirictories.
Yesterday 07 Nov I found that all subdirectories don’t work (error 404 – “file not found etc”). Dashboards of “subsites” (Russian and French languages) didn’t work as well with same error 404.
I immediately connected with host provider and they said that server works OK and they aren’t have any issues at that moment.
Then I started investigate system files (by ftp) and found that my htaccess was changed. So big part of the htaccess was deleted.
This is the htaccess at that moment:

# BEGIN s2Member GZIP exclusions

	RewriteEngine On
	RewriteBase /
	RewriteCond %{QUERY_STRING} (^|?|&)s2member_file_download=.+ [OR]
	RewriteCond %{QUERY_STRING} (^|?|&)no-gzip=1
	RewriteRule .* - [E=no-gzip:1]

# END s2Member GZIP exclusions

# BEGIN s2Member GZIP exclusions

	RewriteEngine On
	RewriteBase /
	RewriteCond %{QUERY_STRING} (^|?|&)s2member_file_download=.+ [OR]
	RewriteCond %{QUERY_STRING} (^|?|&)no-gzip=1
	RewriteRule .* - [E=no-gzip:1]

# END s2Member GZIP exclusions

# BEGIN s2Member GZIP exclusions

	RewriteEngine On
	RewriteBase /
	RewriteCond %{QUERY_STRING} (^|?|&)s2member_file_download=.+ [OR]
	RewriteCond %{QUERY_STRING} (^|?|&)no-gzip=1
	RewriteRule .* - [E=no-gzip:1]

# END s2Member GZIP exclusions

# BEGIN s2Member GZIP exclusions

	RewriteEngine On
	RewriteBase /
	RewriteCond %{QUERY_STRING} (^|?|&)s2member_file_download=.+ [OR]
	RewriteCond %{QUERY_STRING} (^|?|&)no-gzip=1
	RewriteRule .* - [E=no-gzip:1]

# END s2Member GZIP exclusions

I suggested it was a hack and connected to provider again. They check all and replied that no any evidence or sign of hacking. After this I fixed htaccess and set itto 0444 permission to avoid repeat this situation. Site started to normally work.

So I concluded that the S2member plugin changed the htaccess.

Actually I liked S2members and would like that you can find and fix it if there any errors etc. So I can answer any questions and provide access to my site for the plugin staff.

And question about htaccess. Can I left in the htaccess only this part for S2member (as you saw it repeated three times):

BEGIN s2Member GZIP exclusions

RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (^|?|&)s2member_file_download=.+ [OR]
RewriteCond %{QUERY_STRING} (^|?|&)no-gzip=1
RewriteRule .* - [E=no-gzip:1]

# END s2Member GZIP exclusions

Thank you for your attention.

  • This topic was modified 3 years, 2 months ago by  Alexander Deyneko.
  • This topic was modified 3 years, 1 month ago by  Alexander Deyneko.

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.