• I have just resolved a canonical problem on https://www.lagiraudiere.com
    The problem was I had duplicate material because of
    lagiraudiere.com = https://www.lagiraudiere.com so basically two identical websites.

    My websites are hosted by Names Co who use Zeus servers and hence had a problem trying to find code or script to correct the probelm.

    Eventually I did find the code and it did correct the problem except now I have the blog lagiraudiere.com/blog not being found or just looping.

    Could anyone help me find the solution I have contatced my host who also are tryinbg but they seem to be having problems.

    The script I used is,

    match IN:Host into $ with ^lagiraudiere\.com$
    if matched
    match URL into $ with ^/(.*)$
    if matched
    set OUT:Location = https://www.lagiraudiere.com/$1
    set OUT:Content-Type = text/html
    set RESPONSE = 301
    set BODY = Moved
    endif
    endif

    and this is what is happening as regards mail to and from my host

    “Hi Yes I have had to use the script to divert NON WWW indexed pages to WWW indexed pages in order to correct the canonical problem.

    I think I found the script at

    https://www.names.co.uk/support/new/528-zeus_rewrite_rules_user_guide.html

    The Zeus script below permanent 301 redirects any requests for “non-www” URL’s to the “www” equivalent for the “domain.co.uk” domain.

    The actual script file I have placed on the /web directory I named or called “rewrite.script”

    and the script in side is,

    match IN:Host into $ with ^lagiraudiere\.com$
    if matched
    match URL into $ with ^/(.*)$
    if matched
    set OUT:Location = https://www.lagiraudiere.com/$1
    set OUT:Content-Type = text/html
    set RESPONSE = 301
    set BODY = Moved
    endif
    endif

    The script is working as reagrds the canonical problem but I seem to have llost the blog. I saved the file as follows and uploaded via FTP “rewrite.script”

    If you could take a moment to check what I need to do or add to the script it would be appreciated as the only help I can find when searching about zeus servers is you.
    Thanks Paul”

    Link to website now is
    https://www.lagiraudiere.com/

    and the blog is at
    https://www.lagiraudiere.com/blog/

    Regards
    Paul

  • The topic ‘canonical problem solved with script but now no blog’ is closed to new replies.