Trailing slash problem

Hope someone can help.

When someone enters domain as follows:
http://www.domainname.com/dir

They get directed to:
http://domainname.com/dir

Loosing the 'www'

But if they use:
http://www.domainname.com/dir/

All is fine, this seems to be affecting cookie issues also. :|

I hear there is a work around using a .htaccess file and the rewrite command.

Can anyone help or get any ideas or point me in the right direction?

Many thanks.

 

 

 

 

Top