Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12488

Reply To: htaccess Redirect Code – Where Do I Add Redirect htaccess Code

$
0
0

I’m now working on the new site, on the new server, but the DNS is still pointing to my old site.
So I’ve edited my computer’s host file to see my new site on the new server, and it’s this site I’m working on.

These 2 statements above conflict with each other. If the site is hosted on a public host server then changing your local hosts file on your computer will only affect your local server or computer. DNS propagation for a public hosted server is handled by the public host. So I assume you are working on a Local copy of your website that is not publicly hosted on a hosting server and is instead installed locally on a Local Development server on your computer.

Redirectmatch 301 ^/competitions$ http://www.my-site.com/$1 - will redirect to this destination URL: http://www.my-site.com/competitions
Redirectmatch 301 ^/copyright-info$ http://www.my-site.com/terms-and-conditions$1 - will redirect to this destination URL: http://www.my-site.com/terms-and-conditions/copyright-info
Redirectmatch 301 ^/hzp-group$ http://www.my-other-site.com/$1 - will redirect to this destination URL: http://www.my-other-site.com/hzp-group

Viewing all articles
Browse latest Browse all 12488

Trending Articles