Go Back   CodingForums.com > :: Client side development > General web building

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-01-2008, 05:13 PM   PM User | #1
a4udi
Regular Coder

 
Join Date: Jan 2005
Posts: 181
Thanks: 5
Thanked 0 Times in 0 Posts
a4udi is an unknown quantity at this point
Website Folder Structure and Security

I have noticed that unlike your average site using "page.php" or "page.asp"... a lot of larger financial sites have a folder structure in place in which every file is in it's own folder (or so it appears) and was just curious as to the reasoning behind this or what they are doing to hide the file extensions or present the information in this way? Are they just using a CMS that hides those disguisting looking file names, or is there something else going on?

examples.
https://www.vancity.com/MyMoney/AboutUs/
http://www.hsbc.com/1/2/sustainabili...g-our-progress
a4udi is offline   Reply With Quote
Old 11-01-2008, 05:38 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
They are most likely using url-rewrite with htaccess. Look it up. Its a pretty common thing on many forums and blogs.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 11-01-2008, 06:38 PM   PM User | #3
a4udi
Regular Coder

 
Join Date: Jan 2005
Posts: 181
Thanks: 5
Thanked 0 Times in 0 Posts
a4udi is an unknown quantity at this point
Quote:
Originally Posted by _Aerospace_Eng_ View Post
They are most likely using url-rewrite with htaccess. Look it up. Its a pretty common thing on many forums and blogs.
I've used url-rewrite with .htaccess... just more curious about what the advantages are and why this might be a better option?
a4udi is offline   Reply With Quote
Old 11-01-2008, 07:24 PM   PM User | #4
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
Quote:
Originally Posted by a4udi View Post
I've used url-rewrite with .htaccess... just more curious about what the advantages are and why this might be a better option?
For SEO purposes its easier for search engines to get to the pages. Its also easier for the user as the url is meaningful. Something like

http://somesite.com/index.php?pageid...ate=11-11-2008

would be a little cumbersome where as something like

http://somesite.com/11/11/2008/stuff/5/ would be easier to understand.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 11-03-2008, 09:43 AM   PM User | #5
website_seo
New Coder

 
Join Date: Mar 2008
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
website_seo is an unknown quantity at this point
Basically one should make short urls and use keywords in it.
__________________
SEO Promotion Company providing SEO Services to UK, US, Canada and Australia.
Read updated information on SEO at SEO Blog

Last edited by website_seo; 11-03-2008 at 09:50 AM..
website_seo is offline   Reply With Quote
Old 05-05-2009, 04:34 AM   PM User | #6
smlie4
New to the CF scene

 
Join Date: May 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
smlie4 is an unknown quantity at this point
I'm just starting out on researching this type of method used for file structure, but what i can't understand is what the file name is supposed to be in the folder? I have checked out a few sites that "a4udi" mentioned I tried typing index.htm, index.php, index.html etc.. after the folder name but I keep getting a 404 page not found code.

A guess would be that there is one file called index in the folder, but how do they stop people from accessing the index file? If it is the htaccess file do they have to manually code htaccess file everytime they create a new folder?

I am warming to this naming conversion and see its SEO advantages as well as it's simplicity in the address bar and also the added advantage that people don't see what page extension is being used.

Thanks a4udi for your posting and to those who replied.
smlie4 is offline   Reply With Quote
Old 05-05-2009, 05:47 AM   PM User | #7
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
They are using index.jsp

There new about page is here: https://www.vancity.com/AboutUs/

They changed their links. The first site likely isn't using htaccess. They are just making folders that contain files for that part of the site. They stick an index.jsp file in there that handles everything.

The HSBC site is likely using htaccess though they don't create one for each url. They have one and the htaccess uses rules to match urls entered by the user.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:07 AM.


Advertisement
Log in to turn off these ads.