Jump to content

How do I loose index.php when SSL is enabled?


i.ahmed

Recommended Posts

When SSL is disabled all domains when typed appear as written below:

 

example.com

http://example.com

www.example.com

http://www.example.com

 

When SSL is enabled and forced on all pages:

 

example.com

http://example.com

www.example.com

http://www.example.com

 

^ ALL redirect to

 

https://www.example.com/index.php

 

The https://www.example.com is correct but index.php is being appended, for seo purposes I'd like this removing, not the *page* index.php as assumed in an older thread, just the url.

 

I've had a look at the .htaccess but cannot find any reference to index.php being forced on the domain.

 

I could write a redirect from /index.php to the root of the domain, but it feels like an extra redirect on a redirect. I'd rather fix the initial redirect.

 

E.G currently http://example.com is classed as a redirect to https://example.com/index/php so rather than adding another redirect to a redirect, I'd rather fix the first one thats sending the user to /index.php.

 

A lot of redirects lol

 

Thanks in advance

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...