Jump to content

Archived

This topic is now archived and is closed to further replies.

xenooreo

Quick .htaccess pointer

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\" /]

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.