Please Help With Dynamic URL/Page Issue

by 3 replies
4
I have a bunch of dynamic pages that grab data from my website database. The pages are using an "echo" to create the meta title for each page. I have a weird duplicate page problem, im able to remove or add anything to the url and it modifies the meta titles and the title on the page that is echoed from database.

For example: mysite.com/pricestates?id=0&country=Canada

I get and exact duplicate of the page using: mysite.com/pricestates?id=0&country=ANYTHINGGGGGG
and even this will be the same page: mysite.com/pricestates?id=0&country

How can i keep it the original and get a 404 page not found for anything else?
#programming #dynamic #issue #url or page
  • Wouldn't it be better to modify the script so that some kind of error message appears for invalid countries ?
    • [1] reply
    • excellent idea lol, im not a coder/designer so i wouldn't know how but i will pass this on to my guy. Thanks
      • [1] reply

Next Topics on Trending Feed

  • 4

    I have a bunch of dynamic pages that grab data from my website database. The pages are using an "echo" to create the meta title for each page. I have a weird duplicate page problem, im able to remove or add anything to the url and it modifies the meta titles and the title on the page that is echoed from database. For example: mysite.com/pricestates?id=0&country=Canada