Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Wrong urls pointing to correct page.

Wrong urls pointing to correct page.

Scheduled Pinned Locked Moved Web Development
helpcsharpasp-netwpfcom
8 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ParagGupta
    wrote on last edited by
    #1

    Hi, We have a website created using some templates in ASP.NET 1.1. and pages are manages using Kentico. Earlier we have some url's having space(' ') in them we changed those space by underscore ('_') in those pages. Lets suppose initially it was "www.xyz.com/abs pqr.aspx" and we changed it to "www.xyz.com/abs_pqr.aspx". Now the problem is that it is showing same page on both the url's (with space and underscore), even search results on google shows url with old paths i.e. with Space between 2 words. So on clicking on them correct page is opening but with wrong url. Ideally it should have to show that Page not found error. So now we have same page opening for 2 url's as follows in which second one doesn't exists. "www.xyz.com/abs_pqr.aspx" (Current URL) "www.xyz.com/abs pqr.aspx" (Old/Non-existent URL) Can someone please tell me why this is happening, and what's solution for it. Regards, Parag Regards, Parag

    S L 2 Replies Last reply
    0
    • P ParagGupta

      Hi, We have a website created using some templates in ASP.NET 1.1. and pages are manages using Kentico. Earlier we have some url's having space(' ') in them we changed those space by underscore ('_') in those pages. Lets suppose initially it was "www.xyz.com/abs pqr.aspx" and we changed it to "www.xyz.com/abs_pqr.aspx". Now the problem is that it is showing same page on both the url's (with space and underscore), even search results on google shows url with old paths i.e. with Space between 2 words. So on clicking on them correct page is opening but with wrong url. Ideally it should have to show that Page not found error. So now we have same page opening for 2 url's as follows in which second one doesn't exists. "www.xyz.com/abs_pqr.aspx" (Current URL) "www.xyz.com/abs pqr.aspx" (Old/Non-existent URL) Can someone please tell me why this is happening, and what's solution for it. Regards, Parag Regards, Parag

      S Offline
      S Offline
      StianSandberg
      wrote on last edited by
      #2

      Take a look at urlMappings http://msdn.microsoft.com/en-us/library/ms228302.aspx[^]

      --------------- www.serverside.no

      P 1 Reply Last reply
      0
      • S StianSandberg

        Take a look at urlMappings http://msdn.microsoft.com/en-us/library/ms228302.aspx[^]

        --------------- www.serverside.no

        P Offline
        P Offline
        ParagGupta
        wrote on last edited by
        #3

        Well Thanks for the response but it isn't helpful indeed. :(

        1 Reply Last reply
        0
        • P ParagGupta

          Hi, We have a website created using some templates in ASP.NET 1.1. and pages are manages using Kentico. Earlier we have some url's having space(' ') in them we changed those space by underscore ('_') in those pages. Lets suppose initially it was "www.xyz.com/abs pqr.aspx" and we changed it to "www.xyz.com/abs_pqr.aspx". Now the problem is that it is showing same page on both the url's (with space and underscore), even search results on google shows url with old paths i.e. with Space between 2 words. So on clicking on them correct page is opening but with wrong url. Ideally it should have to show that Page not found error. So now we have same page opening for 2 url's as follows in which second one doesn't exists. "www.xyz.com/abs_pqr.aspx" (Current URL) "www.xyz.com/abs pqr.aspx" (Old/Non-existent URL) Can someone please tell me why this is happening, and what's solution for it. Regards, Parag Regards, Parag

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Can you send URL's that are showing this behavior. secondly, i need little more information from your side. The code change of URL's was server sided or just a change in .aspx page(i.e. HTML) Regards Aman Bhullar

          P 1 Reply Last reply
          0
          • L Lost User

            Can you send URL's that are showing this behavior. secondly, i need little more information from your side. The code change of URL's was server sided or just a change in .aspx page(i.e. HTML) Regards Aman Bhullar

            P Offline
            P Offline
            ParagGupta
            wrote on last edited by
            #5

            Hi Aman, Here are the urls. Wrong one: "http://www.nagarro.com/Technologies/Java Development.aspx" Correct One: "http://www.nagarro.com/Technologies/Java\_Development.aspx" There wasn't code change I just changed the urlname as I am using Kentico to manage this site and there we can create many pages from one template and modify content easily depending on requirement. Regards, Parag

            L 1 Reply Last reply
            0
            • P ParagGupta

              Hi Aman, Here are the urls. Wrong one: "http://www.nagarro.com/Technologies/Java Development.aspx" Correct One: "http://www.nagarro.com/Technologies/Java\_Development.aspx" There wasn't code change I just changed the urlname as I am using Kentico to manage this site and there we can create many pages from one template and modify content easily depending on requirement. Regards, Parag

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Hi I don't have any idea about Kentico. What my observations are as: 1. On the webserver, both the pages are residing(a_b.aspx and a b.aspx). Try deleting the pages with white spaces from the server. This will solve your problem. 2. Regarding the Pages in google, Both the pages have Meta tags. Till the Pages reside on the Hard of Server they will be displayed in Search results. Once you delete them, they will be automatically removed from Search, after a time interval. Mean time 404 error will be displayed Try the solution, if problem presist please feel free to contact

              P 1 Reply Last reply
              0
              • L Lost User

                Hi I don't have any idea about Kentico. What my observations are as: 1. On the webserver, both the pages are residing(a_b.aspx and a b.aspx). Try deleting the pages with white spaces from the server. This will solve your problem. 2. Regarding the Pages in google, Both the pages have Meta tags. Till the Pages reside on the Hard of Server they will be displayed in Search results. Once you delete them, they will be automatically removed from Search, after a time interval. Mean time 404 error will be displayed Try the solution, if problem presist please feel free to contact

                P Offline
                P Offline
                ParagGupta
                wrote on last edited by
                #7

                Hi, The problem is that on server we have only one page i.e. a_b.aspx and but it is showing both. The page a b.aspx have no existence. If you compare source code for both the files then you will see that both are identical except the names. Regards, Parag

                L 1 Reply Last reply
                0
                • P ParagGupta

                  Hi, The problem is that on server we have only one page i.e. a_b.aspx and but it is showing both. The page a b.aspx have no existence. If you compare source code for both the files then you will see that both are identical except the names. Regards, Parag

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Hi parag I talked to my team member regarding the Issue. He told me that there are just two possiblites, one i have already suggested you. Another is, since you are using Kentico. I suppose you use the same tool to upload the code to server. Now on you server there is a Redirect URL from your OLD to NEW. This can be the issue. There is no third probablity. Regards Aman Bhullar

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups