Website principles

tomb08uk

New Member
Hi, I have built many websites, usually using Dreamweaver.

Few things I want to check out as never sure if i produce them correctly.

For example I know the homepage should be called index.html

Also is this right:

Create a folder on PC called website then inside their have one sub-folder - called images.

Also does it matter id the name the site page

contact_me.html or contactme.html

As wnt to get into making my sites with the proper principles and concepts.

Thanks
 
I always tend to use plenty of folders, so that I know exactly where everything is (css,images,includes,content etc.). The I use htacces in folders that only the server needs access to, such as content and includes, and generally just try to keep it all as organised as possible.

The name of the page may matter for SEO purposes, as a search engine is more likely to recognise contact_me.html or contact-me.html as 2 words, rather than contactme.html.

I wouldn't say there are any "proper" principles/concepts, but having valid HTML is always a good standard to follow, and try to use divs + css rather than tables, it makes your site look much much better in text-only browsers such as lynx.
 
Thanks for the advice. I intend to produce some sort of site IT related and then if does well, contact major retailers to see if interested in advertising the site. Im stuck on what to make the site about....designing it isnt the problem. Think its too a big task for me self lol....any more suggestions be great!
 
What i like to do is when you are linking to another page, have it linked to a folder.
E.g.
Say you have a link to Contact_Me.html it would look like http://www.yoursite.com/Contact_Me.html

Make a new folder called Contact_Me and move Contact_Me.html into it, then rename Contact_Me.html to index.html and have the link from your home page http://www.yoursite.com/Contact_me/

It makes it look alot nicer on the address bar and i think it makes it look more professional, you can then have image subfolders in these subfolders and know what images or other forms of media go with each page.

Just a suggestion :) I use it all the time :)
 
Alternatively to DrCuddles suggestion you can use mod_rewrite, that way you don't need lot's of folders, but it looks just as good, and is probably easier for you. Use the following code:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^contact-me /contact_me.html
</IfModule>
Then just add a new "RewriteRule" for each page you want.

Place that into a file called ".htaccess" (w/o quotes) in the root directory of your site, although bear in mind it will only work on Apache web servers, which is basically most

It is similar to what I use on the site in the top link in my sig
 
Alternatively to DrCuddles suggestion you can use mod_rewrite, that way you don't need lot's of folders, but it looks just as good, and is probably easier for you. Use the following code:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^contact-me /contact_me.html
</IfModule>
Then just add a new "RewriteRule" for each page you want.

Place that into a file called ".htaccess" (w/o quotes) in the root directory of your site, although bear in mind it will only work on Apache web servers, which is basically most

It is similar to what I use on the site in the top link in my sig
Sorry, But im not 100 percent on how this would work...Any chance could explain in more detail if possible.
 
right, I'm assuming that you have a web host, and this is only applicable if your host uses apache. In the root directory of where your site is you need to create a new file called ".htaccess", then in that filw put the following code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^contact-me /contact_me.html
</IfModule>
Then for each page you have add a new line under the one beginning RewriteRule that contains the following:

Code:
RewriteRule ^(url to display) /(URL to go to)

I think that makes a bit more sense
 
I understand, so it appears in the task bar as one url, though it might be going to a different file. I understand...

Cheers
 
Back
Top