Welcome to WebmasterWorld Guest from 54.167.0.111

Forum Moderators: ocean10000

Message Too Old, No Replies

Dynamic Folders in URLs

     

aaronroach78

12:30 am on Apr 3, 2012 (gmt 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.

Ocean10000

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

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



What CMS software are you running? Depending how the software is written might determine how to correct this issue.

aaronroach78

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



It's a proprietary CMS, so it's quite clunky. Is there another way I can determine how it's written?

g1smd

6:43 am on Apr 3, 2012 (gmt 0)

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



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.

aaronroach78

6:50 am on Apr 3, 2012 (gmt 0)



Hey g1smd...

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

Cheers guys!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month