Jump to content


Photo

Quick .htaccess pointer


  • Please log in to reply
3 replies to this topic

#1 xenooreo

xenooreo
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 27 June 2006 - 03:35 AM

For a site I'm working on, for some reason if 'www' is in the address, it will get a bit messed up.
So I wanted to use .htaccess to simply remove www from the address and just use http://

Now... how would I do this? [img src=\"style_emoticons/[#EMO_DIR#]/laugh.gif\" style=\"vertical-align:middle\" emoid=\":laugh:\" border=\"0\" alt=\"laugh.gif\" /]

#2 apacheguy

apacheguy
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 29 June 2006 - 05:35 PM

Does your server give a response if you enter in www.yourdomain.com? If not, then adding a rewrite rule or re-configuring your server is not going to help. My site doesn't work at all if you use www. It has to do with the DNS config I think. So you would have to look at your DNS server.

#3 xenooreo

xenooreo
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 29 June 2006 - 08:51 PM

www works fine, but one of the scripts just won't function properly if www is used.

#4 apacheguy

apacheguy
  • Members
  • PipPipPip
  • Advanced Member
  • 108 posts

Posted 29 June 2006 - 09:51 PM

Are the urls in the script configured for www?  I would recommend not putting in the entire url in your script code (ex instead of "<a href="www.this.com/kool">" put "<a href="/kool">").  Otherwise sometimes you will be on www.this.com and then go to the script, click on a link and end up on http://this.com and then the links may not work.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users