RewriteEngine On RewriteCond %{REQUEST_URI} !^/review\.php$ RewriteRule ^review/?$ /review.php [L] RewriteCond %{REQUEST_URI} !^/member\.php$ RewriteRule ^member/?$ /member.php [L] RewriteCond %{REQUEST_URI} !^/video\.php$ RewriteRule ^video/?$ /video.php [L] RewriteCond %{REQUEST_URI} !^/foto\.php$ RewriteRule ^foto/?$ /foto.php [L] RewriteCond %{REQUEST_URI} !^/events\.php$ RewriteRule ^news-events/?$ /events.php [L] RewriteCond %{REQUEST_URI} !^/kontak\.php$ RewriteRule ^kontak-kami/?$ /kontak.php [L] RewriteCond %{REQUEST_URI} !^/clients\.php$ RewriteRule ^clients/?$ /clients.php [L] RewriteCond %{REQUEST_URI} !^/program\.php$ RewriteRule ^program/?$ /program.php [L] RewriteCond %{REQUEST_URI} !^/portofolio\.php$ RewriteRule ^portofolio/?$ /portofolio.php [L] RewriteCond %{REQUEST_URI} !^/arcade\.php$ RewriteRule ^tags/arcade/?$ /arcade.php [L] RewriteCond %{REQUEST_URI} !^/tentangkami\.php$ RewriteRule ^page/tentang-kami/?$ /tentangkami.php [L] RewriteOptions inherit RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Disable directory browsing Options All -Indexes # SetEnv CI_ENVIRONMENT development # ---------------------------------------------------------------------- # Rewrite engine # ---------------------------------------------------------------------- # Turning on the rewrite engine is necessary for the following rules and features. # FollowSymLinks must be enabled for this to work. Options +FollowSymlinks RewriteEngine On # If you installed CodeIgniter in a subfolder, you will need to # change the following line to match the subfolder you need. # http://httpd.apache.org/docs/current/mod/mod_rewrite.html#rewritebase # RewriteBase / # Redirect Trailing Slashes... RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Rewrite "www.example.com -> example.com" RewriteCond %{HTTPS} !=on RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L] RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] # Checks to see if the user is attempting to access a valid file, # such as an image or css document, if this isn't true it sends the # request to the front controller, index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA] # Ensure Authorization header is passed along RewriteCond %{HTTP:Authorization} . RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # If we don't have mod_rewrite installed, all 404's # can be sent to index.php, and everything works as normal. ErrorDocument 404 index.php # Disable server signature start ServerSignature Off # Disable server signature end # 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 display_errors On php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 128M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php80" php_value upload_max_filesize 8M php_flag zlib.output_compression On php_flag display_errors On php_value max_execution_time 30 php_value max_input_time 60 php_value max_input_vars 1000 php_value memory_limit 128M php_value post_max_size 8M php_value session.gc_maxlifetime 1440 php_value session.save_path "/var/cpanel/php/sessions/ea-php80" php_value upload_max_filesize 8M php_flag zlib.output_compression On # END cPanel-generated php ini directives, do not edit Require all denied