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.

htaccess

Home Forums Community Forum htaccess

This topic contains 0 replies, has 1 voice. Last updated by  Mary Sullivan 3 years, 1 month ago.

Topic Author Topic
Posted: Monday Nov 18th, 2013 at 12:52 pm #61202

I see that s2member has written some information to the .htaccess file that I have on my site. A client has gone to a company for SEO and they’ve asked me to upload another htaccess.dat file.

I just need to know if that is a different type of htaccess file, and if it isn’t and I overwrite the current one, does s2member write to that file again? Or will it break something?

This is my current .htaccess file content

# 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


RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

and this is their file

# mod_rewrite On only needed once
RewriteEngine On

# 301 permanent redirect index.html(htm) to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /([^/]+/)*index.html? HTTP/
RewriteRule ^(([^/]+/)*)index.html?$ http://www.opt-assess.com/$1 [R=301,L] 

# 301 permanent redirect non-www (non-canonical) to www
RewriteCond %{HTTP_HOST} !^(www.opt-assess.com)?$
RewriteRule (.*) http://www.opt-assess.com/$1 [R=301,L]

thank you.

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.