Showing posts with label https. Show all posts
Showing posts with label https. Show all posts
06 January, 2021
<IfModule mod_rewrite.c>
Options All -Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://coderfunda.tk/ [R,L]
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
How to redirect http to https in php
Programing Coderfunda
January 06, 2021
.htaccess, http, https
No comments
<IfModule mod_rewrite.c>
Options All -Indexes
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://coderfunda.tk/ [R,L]
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
21 December, 2020
Redirect HTTP to HTTPS via .htaccess Laravel
Programing Coderfunda
December 21, 2020
.htaccess, https, Laravel
No comments
Redirect HTTP to HTTPS via .htaccess Laravel
<?php
RewriteEngine On
RewriteRule ^(.*)$ public/ [L]
?>
Way code above it redirect to http, if you want http to https,
you can using following code above
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://www.coderfunda.tk/ [L,R=301]
RewriteRule ^(.*)$ public/ [L]
</IfModule>
Redirect HTTP to HTTPS via .htaccess Laravel
Programing Coderfunda
December 21, 2020
.htaccess, https, Laravel
No comments
Redirect HTTP to HTTPS via .htaccess Laravel
<?php
RewriteEngine On
RewriteRule ^(.*)$ public/ [L]
?>
Way code above it redirect to http, if you want http to https,
you can using following code above
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://www.coderfunda.tk/ [L,R=301]
RewriteRule ^(.*)$ public/ [L]
</IfModule>