How to redirect http to https? without having "index.php" in middle of url?

paramveer

Member
Oct 22, 2013
8
0
1
Gurgaon
cPanel Access Level
Root Administrator
suppose a url like this http://www.domain.com/x-y-z

after using ssl the url will be https://www.domain.com/x-y-z

but when i am editing this url means removing "www" https://domain.com/x-y-z then it is redirecting to https://www.domain.com/index.php/x-y-z

first thing i want know that why it is redirecting with index.php and how to remove it.

NOTE: having 301 redirect for "www" for canonical issue.

second thing i want to know that how to redirect or open a website which is having a url like http://domain.com to https://www.domain.com means there should be https and www both.

third one i need to know that if i am redirecting through cpanel then the website going inaccessible. why?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

Could you let us know what entries exist in the .htaccess file within the public_html directory for this account?

Thank you.