KOllane mage website akata https certificate akak damma, normally https:// gahuwama awlak nathuwa yanawa, but www. or http kiyala gahuwama normal load wenne. so http and www. gahuwama https://www. walata redirect karanne kohomada ? 


redirect karala nadda??
Add 301 redirect to https using .httaccess or Apache config. (if you use Apache)
https://www.sslshopper.com/apache-redirect-http-to-https.htmlhow do i redirect using .httaccess bro? , i need to redirect http and http://www. to https://www.
ithin eka thamaii need to do it using .httaccess ban
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
i need to do it using .httaccess ban
ithin eka thamai
Code:RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
onna oka daganin.
nginx nam menna config eka
server {
listen 80;
server_name site.com www.site.com;
return 301 https://site.com$request_uri;
}
karuth naddaoooooooooooooooo
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Didn't that work ?
Add these to .httaccess file in your www root and see. Remove previous entries if you not longer using them.
Do i need to add my url to this code bro? or just put this code as it is ?
As it is.
yea i put the code, but its not working :/ , the htaccess file in the public_html right ?
RewriteEngine On
Options +FollowSymLinks
RewriteRule ^test\.html http://www.google.com/? [R=301,L]
Yep. Are you use mod_rewrite and .httaccess is enabled ?
Remove others and add these.
Code:RewriteEngine On Options +FollowSymLinks RewriteRule ^test\.html http://www.google.com/? [R=301,L]
Goto http://domain.com/test.html (domain = your domain)
Check whether it redirects to Google.com
i dont know if the mod_rewrite and .httaccess is enabled, How do i check that ?
Didn't that test redirect work ?
You need to edit apache config for that. Contact your hosting provider.