htaccess redirect https laravel

<IfModule mod_rewrite.c>
    RewriteEngine On        
  RewriteCond %{HTTPS} !=on    
  RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteRule ^(.*)$ public/ [L]
</IfModule>

4.11
9
Awgiedawgie 440215 points

                                    RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://YOURWEBSITEDOMAIN/$1 [R,L]

4.11 (9 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
laravel http to https htaccess htaccess laravel force https laravel htaccess should redirect to https laravel htaccess https laravel htaccess redirect to public on server laravel 8 https redirect redirect http to https laravel 8 laravel 8 redirect http to https in htacess htaccess redirect http to https laravel redirect to https laravel 7 laravel https redirect laravel redirect htaccess laravel redirect from http to https http to https htaccess laravel Laravel 8 htaccess redirect to public redirect to https laravel laravel redirect https to http laravel add http to https redirect laravel redirect http to https htaccess redirect to www htaccess laravel redirect to www https htaccess laravel http redirect to https laravel htaccess https laravel how to redirect https link to http from htaccess in laravel laravel .htaccess file link redirect to http laravel redirect to https http to https redirect htaccess laravel 7 .htaccess redirect http to https laravel redirect https to http htaccess laravel redirect site to https in laravel using htaccess redirect http to https in laravel redirect http to https laravel laravel app redirect to https htaccess lravel htacess redirect to https htaccess redirect to https laravel htaccess redirect https laravel .htaccess laravel https redirect laravel redirect http to https redirect laravel to https laravel .htaccess redirect to public laravel redirect to https htaccess laravel htaccess redirect to public http to https redirect htaccess laravel 8 http to https redirect htaccess laravel redirect http to https htaccess laravel Laravel 8 redirect to HTTPS laravel htaccess force redirect to https redirect to https htaccess laravel laravel htaccess redirect to https redirect from http to https laravel laravel https redirect htaccess how to redirect http to https in laravel redirect http to https htaccess laravel 8
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source