Forum Moderators: phranque

Message Too Old, No Replies

.htm/.html out of URL

in dreamweaver

         

White_Cat

4:22 pm on Nov 21, 2009 (gmt 0)

10+ Year Member



Sorry that I start a new topic about this subject again but I really dont onderstand anything from all the explanations. I am just helping my dad with his website using dreamweaver cs4.

My website is completely build in html and full of small errors but that isnt visible on the web :).

Is there anyone who can give me an explantion on how to make www.example.com/page.html into www.example.com/page in dreamweaver that even I can understand? I am a tennisplayer/coach and dont even know what a mod is or where to find it ;)

It is really important for me and i would really appreciate it if someone could help me out!

jdMorgan

5:55 pm on Nov 21, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you're not prepared to get into complex server configuration subjects and study-up on Apache and its modules, then your best bet would be to forgo this project; It's not likely to make much --if any-- difference in the site's search rankings, and beyond that, the change is mostly cosmetic.

However, if you decide to proceed, you'll have to figure out how to change the URLs in DreamWeaver (a question for a different forum), then configure your server to internally rewrite requests for extensionless URLs to server filenames with extensions, and to externally redirect client requests for the old .html URLs to the new extensionless URLs.

So, prepare to take a couple of weeks (or months) for research, study, and experimentation to get up to speed on Apache [httpd.apache.org], hire someone to do this work for you, or consider that there are far more important things you could do --such as adding more quality content to the site-- that would be of far more benefit in the long term, and much less technically demanding.

Search engines care not a whit whether pages have extensions or not, and they don't care what extension you use, either. You could name your pages "dads-pages.white-cat" if you liked, as long as you also configure your server to serve files having a .white-cat extension with an HTTP Content-Type header of "text/html".

This is the best simple answer I could come up with, because it's simply not simple...

Jim

White_Cat

3:56 pm on Nov 22, 2009 (gmt 0)

10+ Year Member



Thanks it is good to know. Maybe i check in my family if someone already has this skills and wants to do this for us. It is only for a few pages on the website dedicated to books that we published and that we would like to promote by a websitepage that has no .htm or .html after it ;).

I found out that it works when i just delete the .htm and put the file on the server but it only worked on ie! Stupid firefox just showed html code =S. But because it was so simple to make it work for ie i thought that only a few minor changes should make it work for mozilla and other browsers but i gues i was wrong.
And for the posting in this forum: i had no idea i even posted this in a apache forum :p. I just googled some words, came here registered and pushed the button create a new topic without knowing where peeps could see it =O! What is Apache anyway? I like the name it makes me think of indiana stories :p

g1smd

5:04 pm on Nov 22, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



The file on the server needs to have .html extension, so that the server knows what sort of file it is.

The URL does not need to have .html within the URL. URLs are used out on the web, and filenames are used inside the server. The server software 'associates' the two.

A rewrite using a RewriteRule will take your URL request, 'translate' it, and get the correct file from the server.