Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2004, 06:49 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anshul
Default http://mysite.com or http://www.mysite.com

just type http://yahoo.com, it changes to http://www.yahoo.com
this means Yahoo! serves its pages from 'http://www.yahoo.com/' only.

this is 2-3 lines in .htaccess file, if someone of u know, please write here :)
__________________
`~@#\^%&*/\.<.\/-|+|_!:;..=?>
PHP, SEO | anshul shrivastava | mediasworks.org | FB
 
Old December 27th, 2004, 03:50 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Why is it you need your domain name to be prefixed by 'www.'? It does exactly the same thing either way.

However you can include some JavaScript on each page (sorry, I don't know the Apache code):

Code:
if(window.location.substr(0,11)=='http://www.')location.replace('http://www.'+location.substr(12));
-Snib - http://www.snibworks.com
Where will you be in 100 years?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Web part functionality like http://www.thefreedict kamii47 ASP.NET 2.0 Professional 0 June 10th, 2006 01:36 AM
http://domain or http://www.domain anshul HTML Code Clinic 9 August 11th, 2004 01:09 AM
HTTP Status 405 - HTTP method GET .... nsakic Servlets 1 January 25th, 2004 04:50 PM
C++ Books http://www.gotchas3.as.ro inrev C++ Programming 1 January 21st, 2004 03:50 AM
C++ Books http://www.gotchas3.as.ro inrev All Other Wrox Books 0 January 16th, 2004 01:14 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.