PDA

View Full Version : How to send a url to another


kerux
04-21-2004, 07:57 AM
Okay, I know this is probably a simple fix, but I don't know how to do it. when I access my site with the www before it, everything works fine, but when I don't use the www, the forms act up and don't work right. Can someone please help me with this?

existenz
04-21-2004, 08:30 AM
That depends on the script. Some have the option to use subdomains or domains. Read the config on the script and also try to change anything that requries a domain to just your domain not the subdomain www.domain.tld

l0rdphi1
04-21-2004, 09:14 AM
You could put this in ~/public_html/.htaccess, which will redirect any request to the www-version of your domain: RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.tld$ [NC]
RewriteRule ^(.*)$ http://www.yourdomain.tld/$1 [R=301,L]