Welcome to WebmasterWorld Guest from

Forum Moderators: Robert Charlton & aakk9999 & andy langton & goodroi

Message Too Old, No Replies

Hierarchical URLs and Non-hierarchical URLs

2:55 am on Dec 17, 2012 (gmt 0)

New User

joined:July 21, 2012
posts: 38
votes: 0

Now days

example.com/pagename are noticed to be more popular
and they use breadcrumb URLs to improve navigation

the problem with using this convention is, this practice needs a rendering engine against the simpler FTP.

the problem now noticed with rendering engines are they are exposed to numerous SQL injections.

Trying to understand the advantages and disadvantages of the newer Non-hierarchical URLs against Hierarchical URLs i.e. its predecessor.
9:56 am on Dec 17, 2012 (gmt 0)

Moderator This Forum from GB 

WebmasterWorld Administrator 5+ Year Member Top Contributors Of The Month

joined:Apr 30, 2008
votes: 186

By "rendering engine" I assume you mean server side scripting + database.
You may or may not need this, depending on your site.

If your site is not big and the current pages are "hand coded" HTML, you may not need need server side scripting - changing internal URLs to your new format and mapping of URLs to the path of the HTML documents on your server via .htaccess would be enough. The old URLs should then be redirected to the new format using 301 redirect in .htaccess (assuming your hosting is Linux).

Otherwise you may use database and something like php + .htaccess to handle your URLs. With regards to the SQL injection, if you do not have forms that use database, you name your database and tables something not obvious and your code that access database is sanitised and you use strong database password, then SQL injection should not be a problem - the risk would be practically the same as leaking your FTP password in your current environment.

And lastly, you could use some of many open source CMS (such as Wordpress) in which case you have to read about the risk on SQL injection, follow the recommendation to sanitise and upgrade your CMS to a newer version regularly.
11:13 am on Dec 17, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:May 7, 2003
posts: 750
votes: 0

"Need" is a strong word. I built a 50,000 page static site in a single directory. I ended up replacing it with a CMS system because it was easier to edit that way. The 50,000 html files in a single directory did not actually cause any problems on their own.
11:47 am on Dec 17, 2012 (gmt 0)

New User

joined:July 21, 2012
posts: 38
votes: 0

"because it was easier to edit that way."

Even collaborative editors are available.