0

So I have domain http://example.com.

I want to setup htaccess to redirect all of these variations

http://www.example.com

http://example.com

https://example.com/111

http://example.com/222

... basically EVERYTHING on this domain I want redirect to

http://www.newexample.com How to set it up properly in .htaccess file?

I don't want to keep path, so if it is example.com/test I want it to redirect to newexample.com NOT newexample.com/test

Thank you

| improve this question | | | | |

Browse other questions tagged or ask your own question.