Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Can I stop a server removing the www. prefix ?

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  .htaccess and errordocument's  
Author Message
user2792

External


Since: May 25, 2004
Posts: 1



(Msg. 1) Posted: Tue May 25, 2004 3:20 pm
Post subject: Can I stop a server removing the www. prefix ?
Archived from groups: alt>apache>configuration (more info?)

When accessing a website (on a third party server - so my scope for
modifying the configuration is limited) in some circumstances
the "www." prefix gets removed.

These circumstances appear to be:

if I access http://www.mysite.co.uk/index.html the page loads and the
address bar shows exactly that.

if I access http://www.mysite.co.uk/ the index page loads and the
address bar shows exactly that.

if I access http://www.mysite.co.uk (i.e. no trailing slash or
filename) the index page loads and the address bar shows
http://mysite.co.uk/ (i.e. the trailing slash has been added but the
www. prefix has gone).

This is causing the Ecommerce package I use some difficulties with
Cookies.

Suppose a cookie is written when the site address is www.mysite.co.uk

If this is later accessed by an address without the www. prefix (i.e.
mysite.co.uk) the cookie data seems to get out of step by 4 characters
and is effectively unusable.

Is there any way to force the server to translate any accesses to
mysite.co.uk/... to become www.mysite.co.uk/... or to prevent the
server changing http://www.mysite.co.uk to http://mysite.co.uk/

I think using rewrite engine in htaccess might offer an answer, I've
had a go without success (possibly because I'm struggling to
understand the rewrite syntax - is there a complete idiot's guide
anywhere?).

 >> Stay informed about: Can I stop a server removing the www. prefix ? 
Back to top
Login to vote
jcopenhaver1

External


Since: May 28, 2004
Posts: 1



(Msg. 2) Posted: Sat May 29, 2004 1:35 am
Post subject: Re: Can I stop a server removing the www. prefix ? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<shortbackandsides.no RemoveThis @spam.hairdresser.net> wrote in message
news:vua6b01fnro792k8mb6n7utm4565v9f8ga@4ax.com...
 > When accessing a website (on a third party server - so my scope for
 > modifying the configuration is limited) in some circumstances
 > the "www." prefix gets removed.
 >
 > These circumstances appear to be:
 >
 > if I access <a style='text-decoration: underline;' href="http://www.mysite.co.uk/index.html" target="_blank">http://www.mysite.co.uk/index.html</a> the page loads and the
 > address bar shows exactly that.
 >
 > if I access <a style='text-decoration: underline;' href="http://www.mysite.co.uk/" target="_blank">http://www.mysite.co.uk/</a> the index page loads and the
 > address bar shows exactly that.
 >
 > if I access <a style='text-decoration: underline;' href="http://www.mysite.co.uk" target="_blank">http://www.mysite.co.uk</a> (i.e. no trailing slash or
 > filename) the index page loads and the address bar shows
 > <a style='text-decoration: underline;' href="http://mysite.co.uk/" target="_blank">http://mysite.co.uk/</a> (i.e. the trailing slash has been added but the
 > <a style='text-decoration: underline;' href="http://www." target="_blank">www.</a> prefix has gone).
 >
 > This is causing the Ecommerce package I use some difficulties with
 > Cookies.
 >
<font color=purple> > Suppose a cookie is written when the site address is <a style='text-decoration: underline;' href="http://www.mysite.co.uk</font" target="_blank">www.mysite.co.uk</font</a>>
 >
 > If this is later accessed by an address without the <a style='text-decoration: underline;' href="http://www." target="_blank">www.</a> prefix (i.e.
 > mysite.co.uk) the cookie data seems to get out of step by 4 characters
 > and is effectively unusable.
 >
 > Is there any way to force the server to translate any accesses to
 > mysite.co.uk/... to become <a style='text-decoration: underline;' href="http://www.mysite.co.uk/..." target="_blank">www.mysite.co.uk/...</a> or to prevent the
<font color=purple> > server changing <a style='text-decoration: underline;' href="http://www.mysite.co.uk" target="_blank">http://www.mysite.co.uk</a> to <a style='text-decoration: underline;' href="http://mysite.co.uk/</font" target="_blank">http://mysite.co.uk/</font</a>>
 >
 > I think using rewrite engine in htaccess might offer an answer, I've
 > had a go without success (possibly because I'm struggling to
 > understand the rewrite syntax - is there a complete idiot's guide
 > anywhere?).
 ><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Can I stop a server removing the www. prefix ? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
--disable-module=all prefix disappeared in apache2 - Hi, I was wondering why this prefix disappeared in apache2 configure script: --disable-module=all I was using this in ./configure script of apache 1.3.x to disable all modules and than added one by one an --enable-module=I_need. As there were only a fe...

Removing an extra slash from redirected URLs - Hello all. I have just converted all of the pages on my website from .shtml to .php pages, but wish to use .htaccess to redirect requests for the .shtmls over to the .phps. I currently have this: RewriteEngine on RewriteBase / RewriteRule ..

Start and stop - Hi! What´s wrong? I have to stop and start apache each time I upload a file to the server. Is this really right? sometimes I have to stop during watching my files. I use Apache as a localhostserver. thanks for help regards Bengan

how can I stop file veiwing? - Is there a way I can stop direct access to files in a directory yet still provide access when the user follows a link to these files? Hopefully this will be a simple task. I'm just not finding it in the docs. apache2.0.48(win32) Thx, Nikki PS. I'm....

stop access to files - HI oh great apache world I'm building a site which is username / password access,after making this access point idiot proof i realised , i am the real idiot, once past the access point anyone can actually go straight to the next page , once they have..
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]