Jump to content

Quick .htaccess pointer


xenooreo

Recommended Posts

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\" /]
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

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.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.