ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

entries still shown ondifferent URL??

October 18, 2007 4:47pm

Subscribe [2]
  • #1 / Oct 18, 2007 4:47pm

    briciusaz

    38 posts

    I need someone to tell me how to prevent from entires to be able be shown on anywhere in url I typed up. For example I have all categories under “About” and another one under “Services”. So if C12 is under About so it would show out as http://www.sitename.com/about/C12 for that specific entry/category. But what bothers me is that I still can read it if I changed the URL to: http://www.sitename.com/services/C12

    How do I prevent that?

  • #2 / Oct 18, 2007 9:58pm

    Ty Martin

    232 posts

    I think you’re putting the category name in the URL when you don’t need to.

    Actually on second thought I think your example URLs are either way off base or there’s some greater confusion going on.

    If “About” and “Services” are categories (and not template groups or templates) then you don’t want to put them in the URL (unless you’re doing so for SEO purposes) because EE doesn’t need them to show the entry. Just write http://www.sitename.com/C12. Hey wait, isn’t C12 your category?

    Oh man I’m confused. Can you clarify? Is it really necessary to worry about how others might manually type in different URLs and arrive at the same content? In all my experience that hasn’t been a problem.

  • #3 / Oct 19, 2007 2:57pm

    briciusaz

    38 posts

    You got it right I shouldn’t be worried abt this. But for the professionism’s sake, I think it’s better to have things set up specifically. Okay I created specific templates under one weblog and created categories in that same weblog to be specifically published in a template I created. So I created a template called “about” and in weblog I created a category called “about” as parent category and add more categories under that parent. What I would like to see that if user type different and it would lead to error page or maybe with suggestion the links that hey may be looking for. Get what I am saying? Let me know. Many thanks!

  • #4 / Oct 19, 2007 5:11pm

    Ty Martin

    232 posts

    Professionalism wise I don’t know of a perfect system for you. There are {if no_results} conditionals for the weblog:entries tag where you can return a 404 error, but that’s not perfect.

    If this were in PHP you’d have the same problem really. Anyone can start mucking with your URLs but in my experience it’s less than 0.1% (according to my stats showing incorrect URLs).

    You can probably try implementing lots of conditionals to test the URL against what you’re expecting, but that may be defeating the purpose of using a content management system, IMHO.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases