Check my .htaccess code please |
My goal is to add the www and enable HTTPS in all URLs, does this setup look fine?
Code: RewriteCond %{HTTPS} off
Maybe something like this:
Code: RewriteCond %{SERVER_PORT} 80 [OR]
You do not need this if your html file is setup correctly:
Code: RewriteCond $1 !^(index\.php|public|images|robots\.txt|css) Plus you may need to set it like this: Code: RewriteRule ^(.*)$ index.php?/$1 [L] What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(05-01-2016, 03:58 AM)InsiteFX Wrote: You do not need this if your html file is setup correctly: Hello, Do you mind posting how the entire .htaccess should look if I want to add the www and enable SSL in URLs? I am not a web developer so it is hard for me to understand. Thank you
Force SSL https:
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Hi ,you can check this
Code: <IfModule mod_rewrite.c>
Hi everyone,
I have added an SSL certificate and would like to have www in front of my domain, please can you check my current .htaccess code and let me know if I should make some changes: Code: RewriteEngine On Thanks! Code: Not needed and can cause errors in an .htaccess file What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
You do not need it at all.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |