Uploaded image for project: 'Yell'
  1. Yell
  2. YELL-768

Redirect to 404 page for active account if coverage area name is same as city name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Site Generator
    • Labels:
      None

      Description

      Facing 404 issue for following combination of service areas.

      Step1: Deploy a site gen request with two line item with following details

      LineItem1
      BFID: 1000002152 [Business Function name: forklifttruckstraining]
      SAID: 670 [AreaName: Nottingham]
      Satus:Paused
      Town: Nottingham

      mysql> select * from locations l where id=670;
      ------------------------------------------------------------------------------------------------------

      id parentLocationID description seLocationIdentifier seLocationLevel demandMapMultiplier shortDescription

      ------------------------------------------------------------------------------------------------------

      670 1038 Nottingham Nottingham, ENG GB city 0.026298 Nottingham

      ------------------------------------------------------------------------------------------------------
      1 row in set (0.03 sec)

      LineItem2
      BFID: 1000002152 [Business Function name: forklifttruckstraining]
      SAID: 1119 [AreaName: Nottingham]
      Satus:Paused
      Town: Nottingham
      mysql> select * from locations l where id=1119;
      -------------------------------------------------------------------------------------------------------

      id parentLocationID description seLocationIdentifier seLocationLevel demandMapMultiplier shortDescription

      -------------------------------------------------------------------------------------------------------

      1119 0 Nottingham NULL coverage_area 0 Nottingham

      -------------------------------------------------------------------------------------------------------
      1 row in set (0.00 sec)

      Check the pages generated in jboss
      Inside jboss jail go to /var/www/sites
      rw-rr- 1 root root 7 Aug 1 14:11 versionID.dat
      rw-rr- 1 root root 359 Aug 1 14:11 sitemap.xml
      rw-rr- 1 root root 3041 Aug 1 14:11 sem-forklifttruckstrainingnottingham.html(sempage* created for said 670 as it is a primarylocationid )

      rw-rr- 1 root root 153 Aug 1 14:11 robots.txt
      rw-rr- 1 root root 14046 Aug 1 14:11 privacy_policy.html
      rw-rr- 1 root root 4152 Aug 1 14:11 index.html
      drwxr-xr-x 2 root root 4096 Aug 1 14:11 images
      rw-rr- 1 root root 3998 Aug 1 14:11 forklifttruckstrainingnottingham.html (seopage* created for said 670 as it is a primarylocationid )
      drwxr-xr-x 2 root root 4096 Aug 1 14:11 css
      rw-rr- 1 root root 10879 Aug 1 14:11 conditions_of_use.html

      Note: .htaccess is blank

      Step2: Redeploy a site gen request by sending cancel request for lineitem1
      LineItem1
      BFID: 1000002152
      SAID: 670 [AreaName: Nottingham]
      Satus: CANCELLED
      Town: Nottingham

      LineItem2
      BFID: 1000002152
      SAID: 1119 [AreaName: Nottingham]
      Satus: Paused
      Town: Nottingham

      Check the pages generated in jboss

      rw-rr- 1 root root 7 Aug 1 14:17 versionID.dat
      rw-rr- 1 root root 359 Aug 1 14:17 sitemap.xml
      rw-rr- 1 root root 3366 Aug 1 14:17 sem-forklifttruckstrainingnottingham.html(SEM page is created for 1119 as this coveragearea contains city 670 ie, primarylocationID )

      rw-rr- 1 root root 153 Aug 1 14:17 robots.txt
      rw-rr- 1 root root 14375 Aug 1 14:17 privacy_policy.html
      rw-rr- 1 root root 4481 Aug 1 14:17 index.html
      drwxr-xr-x 2 root root 4096 Aug 1 14:17 images
      rw-rr- 1 root root 4327 Aug 1 14:17 forklifttruckstrainingnottingham.html (seo page is created for 1119 as this coveragearea contains city 670 ie, primarylocationID )

      drwxr-xr-x 2 root root 4096 Aug 1 14:17 css
      rw-rr- 1 root root 11208 Aug 1 14:17 conditions_of_use.html
      rw-rr- 1 root root 326 Aug 1 14:17 .htaccess
      drwxr-xr-x 4 root root 4096 Aug 1 14:17 .

      Here redirect rule is written for the first line item ie having SAID 670

      redirect 301 /forklifttruckstrainingnottingham.html http://www.yell.com/rd/nottingham/forklifttruckstraining-forklifttruckstraining.htm?bfid=1000002152&said=670
      redirect 301 /sem-forklifttruckstrainingnottingham.html http://www.yell.com/rd/nottingham/forklifttruckstraining-forklifttruckstraining.htm?bfid=1000002152&said=670

      As the seo/sem page created for the lineItem2 (SAID 1119) is same as the seo/sem page created for the lineItem1(SAID:670) we are facing the 404 issue.

      • sempage/seopage are created by using the BFID and SAID ie, BFIDSAID.html
        Ex:
        BFID: locksmith
        SAID: reading

      Seopage created like locksmithreading.html
      Sempage created like sem-locksmithreading.html

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anil.kumar Anil Kumar Halmadgi
                Reporter:
                sharath.tn Sharath TN (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: