Announcement

Collapse
No announcement yet.

Variable URL's go to cgi bin

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Variable URL's go to cgi bin

    Hi,

    I have made a script where it adds all of the other top level section links at the bottom of each product to help our seo.

    however for some reason some sites point to the cgi-bin while others point to the full url for example if you visit: http://www.gardengames.co.uk/acatalo...ool_Table.html and look at the links on the bottom if you hover over one it points to the cgi-bin,

    however if you go to: http://www.pooltablesshop.co.uk/acat...ool-Table.html and hover over the links at the bottom it goes to the acatalog directly. but they use the same script.

    Any ideas how to stop it from pointing to the cgi-bin?

    Simon
    www.simonstaton.co.uk

    #2
    Without seeing the script it's going to be hard for anyone to comment.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Yes sorry normal the code I am using is:

      Code:
      <actinic:block if="%3cactinic%3avariable%20name%3d%22Show%20In%208ft%20Trampolines%22%20%2f%3e%20%3d%3d%20true" >
      Links
      <br>
      <actinic:block type="EntireSectionList" >
      <actinic:block if="%3cactinic%3avariable%20name%3d%22Include%20In%208ft%20Trampolines%22%20%2f%3e%20%3d%3d%20true" >
       <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" /></actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" /></actinic:block>" target="_self"><actinic:variable name='SectionName'/></a>
          <br>
      </actinic:block>
      </actinic:block>
      </actinic:block>
      and again it is the same code on each site but some sites work fine and others point to the cgi-bin then the cgi-bin forwards to the correct page.

      Simon
      www.simonstaton.co.uk

      Comment


        #4
        Put some static text inside and outside of the blockifs on a site that has cgi links and on one that doesn't and see what the difference is.

        I think it must be the difference between the SectionPageName and the SectionURL.

        Comment


          #5
          so manually put a link such as:

          <a href="http://www.gardengames.co.uk/">Test</a> outside the block on the working site and non working site and see if it also goes to the cgi-bin?

          Simon
          www.simonstaton.co.uk

          Comment


            #6
            No much simpler. Just use a few xxxxx and a few yyyy inside and outside the blocks so that you can see which was executed.

            Comment


              #7
              Hi Duncan,

              sorry I am probably being an absolute idiot but just to check so put XXXXXX outside the block and YYYYYY inside the block on the ite having the issues then see if the YYYYY appears?

              Simon
              www.simonstaton.co.uk

              Comment


                #8
                There are two conditions in the code your posted - it would be useful to see which one is being used on each site. See below:
                Code:
                <actinic:block if="%3cactinic%3avariable%20name%3d%22Show%20In%208ft%20Trampolines%22%20%2f%3e%20%3d%3d%20true" >
                Links
                <br>
                <actinic:block type="EntireSectionList" >
                <actinic:block if="%3cactinic%3avariable%20name%3d%22Include%20In%208ft%20Trampolines%22%20%2f%3e%20%3d%3d%20true" >
                 <a href="<actinic:block if="%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20AND%0d%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e" ><actinic:variable name="SectionPageName" />XXXXX</actinic:block><actinic:block if="%28%3cactinic%3avariable%20name%3d%22IsLoginPageSuppressed%22%20%2f%3e%20%3d%3d%20false%29%20OR%0d%28%3cactinic%3avariable%20name%3d%22UnregCustomersAreNotAllowed%22%20%2f%3e%20%3d%3d%20false%29" ><actinic:variable name="SectionURL" />YYYYY</actinic:block>" target="_self"><actinic:variable name='SectionName'/></a>
                    <br>
                </actinic:block>
                </actinic:block>
                </actinic:block>
                Look for the XXXXX and YYYYY in the code above.

                Comment


                  #9
                  both of the conditions are being used the first one is to see which section links are to be shown or it will show all of them and the second is to say if you want the section links to be displayed on this page
                  www.simonstaton.co.uk

                  Comment


                    #10
                    hmm might of solved it, on the link urls I put the "sectionurl" variable maybe put the original link code in that actinic uses on sections. just uploading to see
                    www.simonstaton.co.uk

                    Comment


                      #11
                      yeh thats worked solved
                      www.simonstaton.co.uk

                      Comment

                      Working...
                      X