Hi,

I am trying to set up a redirect 301 and have tried several methods which appears to be all wrong. Can anyone advice exactly how redirect 301 works?

redirect 301 http://newdomain.com/

redirect 301 / http://newdomain.com/

redirect 301 http://olddomain.com/ http://newdomain.com/
redirect 301 http://www.olddomain.com/ http://newdomain.com/

redirect 301 /^(.*)$ http://newdomain.com/$1

Ideally, http://olddomain.com goes to http://newdomain.com and http://olddomain.com/example.html will go to http://newdomain.com/example.html

Can I do all this without the RewriteEngine On?

PS: If there's any documentation I'll be glad to do my own homework. Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.