# Don't show directory listings.
Options -Indexes
# Route requests to Exponent.
DirectoryIndex index.php
# Various rewrite rules.
RewriteEngine On
# you may have to edit/uncomment the next line if running eXp from a subfolder
# RewriteBase /subfolder-name
# if moving eXp from a subfolder to root, edit/uncomment ONLY one of the next 3 lines
# Redirect 301 /testfolder http://yourdomain.org/
# RedirectMatch 301 ^/testfolder/$ http://yourdomain.org/
# RewriteRule ^testfolder/(.*)$ /$1 [R=301,NC,L]
# To redirect all users to access the site WITH the 'www.' prefix,
# (http://example.com/... will be redirected to http://www.example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
# To redirect all users to access the site WITHOUT the 'www.' prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
# RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
# To force the domain to serve the site securely using HTTPS,
# (http://www.example.com/... will be redirected to https://www.example.com/...)
# uncomment and adapt the following:
# RewriteCond %{HTTPS} !=on
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule ^.*\.git.* - [R=404]
# the next two lines will dish out .html pages if they exist, which may not be a desired effect!
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
# RewriteRule ^login.php$ login/showlogin
# Kludge out certain file types that we don't want to try to route thru the eXp router.
# Kludge out image files that we don't want to try to route thru the eXp router.
# Kludge out media files that we don't want to try to route thru the eXp router.
# Kludge out certain other misc files that we don't want to try to route thru the eXp router.
# These rules basically state if it isn't an existing file, directory or symlink, route it to index.php
RewriteCond %{REQUEST_URI} !\.(css|js|pdf|shtml|htc|map)$ [NC]
RewriteCond %{REQUEST_URI} !\.(jp?g|gif|png|tiff)$ [NC]
RewriteCond %{REQUEST_URI} !\.(mp3|mp4|webm|ogv|flv|f4v)$ [NC]
RewriteCond %{REQUEST_URI} !^/robots\.txt$ [NC]
RewriteCond %{REQUEST_URI} !^/favicon\.ico$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA,L]
ErrorDocument 403 /index.php?controller=notfound&action=handle_not_authorized&error=403
ErrorDocument 404 /index.php?controller=notfound&action=handle&error=404
ErrorDocument 500 /index.php?controller=notfound&action=handle_internal_error&error=500
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
php_flag engine On
php_flag short_open_tag On
php_value precision 14
php_value output_buffering Off
php_flag zlib.output_compression Off
php_flag implicit_flush Off
php_value serialize_precision 100
php_flag zend.enable_gc On
php_value max_execution_time 10000
php_value max_input_time 10000
php_value max_input_vars 10000
php_value memory_limit 10000M
php_value error_reporting E_ALL & ~E_NOTICE
php_flag display_errors Off
php_flag display_startup_errors Off
php_flag log_errors Off
php_value log_errors_max_len 1024
php_flag ignore_repeated_errors Off
php_flag ignore_repeated_source Off
php_flag report_memleaks On
php_flag html_errors On
php_value error_log "error_log"
php_value variables_order "GPCS"
php_value request_order "GP"
php_flag register_argc_argv On
php_flag auto_globals_jit On
php_value post_max_size 10000M
php_value default_mimetype "text/html"
php_value default_charset "UTF-8"
php_value upload_max_filesize 10000M
php_value default_socket_timeout 60
php_flag cli_server.color On
php_value date.timezone "Europe/London"
php_flag mail.add_x_header On
php_value odbc.defaultlrl 4096
php_value odbc.defaultbinmode 1
php_value ibase.timestampformat "%Y-%m-%d %H:%M:%S"
php_value ibase.dateformat "%Y-%m-%d"
php_value ibase.timeformat "%H:%M:%S"
php_value mysqli.default_port 3306
php_value pgsql.ignore_notice 0
php_value pgsql.log_notice 0
php_value bcmath.scale 0
php_value session.save_handler "files"
php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
php_flag session.use_strict_mode Off
php_flag session.use_cookies On
php_flag session.use_only_cookies On
php_value session.name "PHPSESSID"
php_flag session.auto_start Off
php_value session.cookie_lifetime 0
php_value session.cookie_path "/"
php_value session.serialize_handler "php"
php_value session.gc_probability 0
php_value session.gc_divisor 0
php_value session.gc_maxlifetime 1500
php_value session.cache_limiter "nocache"
php_value session.cache_expire 180
php_flag session.use_trans_sid Off
php_value session.hash_function "0"
php_value session.hash_bits_per_character 5
php_value url_rewriter.tags "a=href,area=href,frame=src,input=src,form=fakeentry"
php_flag tidy.clean_output Off
php_flag soap.wsdl_cache_enabled On
php_value soap.wsdl_cache_dir "/tmp"
php_value soap.wsdl_cache_ttl 86400
php_value soap.wsdl_cache_limit 5
php_flag engine On
php_flag short_open_tag On
php_value precision 14
php_value output_buffering Off
php_flag zlib.output_compression Off
php_flag implicit_flush Off
php_value serialize_precision 100
php_flag zend.enable_gc On
php_value max_execution_time 10000
php_value max_input_time 10000
php_value max_input_vars 10000
php_value memory_limit 10000M
php_value error_reporting E_ALL & ~E_NOTICE
php_flag display_errors Off
php_flag display_startup_errors Off
php_flag log_errors Off
php_value log_errors_max_len 1024
php_flag ignore_repeated_errors Off
php_flag ignore_repeated_source Off
php_flag report_memleaks On
php_flag html_errors On
php_value error_log "error_log"
php_value variables_order "GPCS"
php_value request_order "GP"
php_flag register_argc_argv On
php_flag auto_globals_jit On
php_value post_max_size 10000M
php_value default_mimetype "text/html"
php_value default_charset "UTF-8"
php_value upload_max_filesize 10000M
php_value default_socket_timeout 60
php_flag cli_server.color On
php_value date.timezone "Europe/London"
php_flag mail.add_x_header On
php_value odbc.defaultlrl 4096
php_value odbc.defaultbinmode 1
php_value ibase.timestampformat "%Y-%m-%d %H:%M:%S"
php_value ibase.dateformat "%Y-%m-%d"
php_value ibase.timeformat "%H:%M:%S"
php_value mysqli.default_port 3306
php_value pgsql.ignore_notice 0
php_value pgsql.log_notice 0
php_value bcmath.scale 0
php_value session.save_handler "files"
php_value session.save_path "/var/cpanel/php/sessions/ea-php74"
php_flag session.use_strict_mode Off
php_flag session.use_cookies On
php_flag session.use_only_cookies On
php_value session.name "PHPSESSID"
php_flag session.auto_start Off
php_value session.cookie_lifetime 0
php_value session.cookie_path "/"
php_value session.serialize_handler "php"
php_value session.gc_probability 0
php_value session.gc_divisor 0
php_value session.gc_maxlifetime 1500
php_value session.cache_limiter "nocache"
php_value session.cache_expire 180
php_flag session.use_trans_sid Off
php_value session.hash_function "0"
php_value session.hash_bits_per_character 5
php_value url_rewriter.tags "a=href,area=href,frame=src,input=src,form=fakeentry"
php_flag tidy.clean_output Off
php_flag soap.wsdl_cache_enabled On
php_value soap.wsdl_cache_dir "/tmp"
php_value soap.wsdl_cache_ttl 86400
php_value soap.wsdl_cache_limit 5
# END cPanel-generated php ini directives, do not edit
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^britishtrolley\.org\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.britishtrolley\.org\.uk$
RewriteRule ^(.*)$ "https\:\/\/www\.britishtrolley\.org\.uk\/$1" [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^britishtrolley\.org\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.britishtrolley\.org\.uk$
RewriteRule ^amember\/?(.*)$ "https\:\/\/www\.britishtrolley\.org\.uk\/amember$1" [R=301,L]
RewriteCond %{HTTP_HOST} ^britishtrolley\.org\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.britishtrolley\.org\.uk$
RewriteRule ^2\-6\-0\/?(.*)$ "https\:\/\/britishtrolley\.org\.uk\/2\-6\-0$1" [R=301,L]