Jump to content

redirection loop in my website


dvir

Recommended Posts

hi ,

i have a problem that i can't find solution to it, hope someone could help me here :

my homepage is https://www.cdsoft.co.il , but it redirects to https://www.cdsoft.co.il/index.php. 
That's fine but the problem is https://www.cdsoft.co.il/index.php has a canonical tag pointing to https://www.cdsoft.co.il/...

i've looked in my header.tpl file , and i have found this

{if isset($canonical_url) && $canonical_url}<link rel="canonical" href="{$canonical_url}" />{/if}

what to do ? how can i exclude my homepage ?

Link to comment
Share on other sites

most often we do not want to display domain/index.php but just domain...

also we often do not want to display .html at end of a URL

I recommend modifying your hosting environment to suppress /index.php  display.

this might solve issue 

there are  various ways to do this, easiest is to contact hosting

else google how to suppress index.php from url

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...