Force https in subdomain

RewriteEngine on RewriteCond %{SERVER_PORT} ^80$ RewriteCond %{HTTP_HOST} ^sub\.domain\.com$ [NC] RewriteRule .? https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] The differrences are: Specify port 80 not any port containing 80 as digits in the port number. Specify using No Case. If both conditions are met, redirect the {REQUEST_URI} to the secure server without duplicating Apache variables for {HTTP_HOST} and {REQUEST_URI}; any query string will not be affected. ...

View More
  Dibaca 345 kali

Enabling mod_rewrite in ubuntu apache server

Step 1 — Enabling mod_rewrite First, we need to activate mod_rewrite. Its available but not enabled with a clean Apache 2 installation. sudo a2enmod rewrite This will activate the module or alert you that the module is already enabled. To put these changes into effect, restart Apache. sudo systemctl restart apache2 mod_rewrite is now fully enabled. In the next step we will set up an .htaccess file that well use to define rewrite rules for redirects.   Step ...

View More
  Dibaca 328 kali

Server unable to read htaccess file, denying access to be safe

  And make sure the directory which contains .htaccess is readable and executable: the directory was set 750, then chmoded to 755 and it worked in terminal sudo chmod 755 access/folder_name/ ...

View More
  Dibaca 355 kali

HOW TO Install php-zip on php 5.6 on Ubuntu

Try either sudo apt-get install php-zip or sudo apt-get install php5.6-zip Then, you might have to restart your web server. sudo service apache2 restart or sudo service nginx restart If you are installing on centos or fedora OS then use yum in place of apt-get. example:- sudo yum install php-zip or sudo yum install php5.6-zip and sudo service httpd restart ...

View More
  Dibaca 363 kali

Cara Install Service Apache dan Mysql Serta Cara Menghapusnya

xampp versi terbaru tidak bisa install service langusung supaya apache dan xamppnya running otomatis ketika komputer restart atau baru dinyalahin. nah kami berikan tutorialnya cara manual installnya.. ...

View More
  Dibaca 322 kali

Cara Mengoptimalkan Kinerja Apache

 Ketika Trafik Website dan aplikasi web kita tinggi sehingga loadingnya menjadi lama maka salah satu cara mensiasatinya adalah dengan mengoptimalkan kinerja apache kami buatkan tutorialnya seperti dibawah ini. Carilah php.ini di folder xamppphp kalau di linux /etc/apache2/php.ini dan edit konfigurasinya seperti ini   max_execution_time = 60;max_input_time = 120;memory_limit = 128M;error_reporting = E_ALL & ~E_NOTICE Ubah Lah nilainya sesuai dengan kemampuan server masing-masing m ...

View More
  Dibaca 748 kali