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

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

$
0
0

@ ait-pro – thanks for your reply.

So my redirects code is totally incorrect! And when I test it (not logged in) it gives me a 404.

But i don’t see how that is different to your first example – so why will yours work and mine won’t? As you recommend using the ^ and $ signs at the beginning and end, how can I redirect it to another file?

Would it work better if I just did it like this? (as I’ve seen it recommended elsewhere):

#301 Redirect Old Files JP edit
Redirectmatch 301 /competitions/ http://www.my-site.com/
Redirectmatch 301 /copyright-info/ http://www.my-site.com/terms-and-conditions/
Redirectmatch 301 /hzp-group/ http://www.my-other-site.com/

or like this…

#301 Redirect Old Files JP edit
Redirectmatch 301 http://www.my-site.com/competitions/  http://www.my-site.com/
Redirectmatch 301 http://www.my-site.com/copyright-info/  http://www.my-site.com/terms-and-conditions/
Redirectmatch 301 http://www.my-site.com/hzp-group/  http://www.my-other-site.com/

Your thoughts appreciated on this.

PS: re. my dev site. It is on a public server and the server techs sent me this guide (http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/) to edit my local pc hosts file to see it. So I can see it on my pc and can check it against my live site on my laptop, where I haven’t edited the hosts file. Seems a brilliant trick to me!


Viewing all articles
Browse latest Browse all 12519

Latest Images

Trending Articles



Latest Images