Welcome to WebmasterWorld Guest from 54.166.180.246

Forum Moderators: ocean10000

Message Too Old, No Replies

Dynamic Folders in URLs

     
12:30 am on Apr 3, 2012 (gmt 0)

New User

joined:Apr 3, 2012
posts: 4
votes: 0


Hey guys,

Hope you're all really well, and many apologies if this is something you've already covered.

I have a website that seems to be rather out of control with the way site content can be accessed.

For example, one piece of content can be found through an infinite number of ways.

Normal http://www.example.com/section/content-name

Adding a site category
http://www.example.com/category/section/content-name

Just adding my own username!
http://www.example.com/aaronroach78/section/content-name

The last one is particularly interesting. As long as it's before 'section' in the URL, I can add anything I want. Of course I've had fun with that, poking fun with rude words and the like, but clearly it's something I'd like to resolve.

If this has been covered in a previous thread, please let me know and I'll run away.

Thanks for your time, guys.
12:36 am on Apr 3, 2012 (gmt 0)

Administrator

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month

joined:Jan 14, 2004
posts:857
votes: 0


What CMS software are you running? Depending how the software is written might determine how to correct this issue.
12:54 am on Apr 3, 2012 (gmt 0)

New User

joined:Apr 3, 2012
posts: 4
votes: 0


It's a proprietary CMS, so it's quite clunky. Is there another way I can determine how it's written?
6:43 am on Apr 3, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


The rewriterules need the pattern matching to be tightened up. All elements of the requested URL need to be passed to the CMS for evaluation.

The CMS needs to "know" what the correct URL for a page is, and issue a redirect if the content is accessed by asking for an incorrect URL.
6:50 am on Apr 3, 2012 (gmt 0)

New User

joined:Apr 3, 2012
posts:4
votes: 0


Hey g1smd...

That's a great response, and exactly what I was after. Thanks for taking the time to reply.

Cheers guys!