homepage Welcome to WebmasterWorld Guest from 54.227.141.230
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Dynamic Folders in URLs
aaronroach78




msg:4436462
 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




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

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

aaronroach78




msg:4436467
 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




msg:4436554
 6:43 am on Apr 3, 2012 (gmt 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.

aaronroach78




msg:4436557
 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!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved