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

Reply To: Add htaccess redirect code to Custom Code

$
0
0

[topic has been merged into this relevant topic]
Hello

I have looked at your post http://forum.ait-pro.com/forums/topic/htaccess-redirect-code-where-do-i-add-redirect-htaccess-code/ for advice on where to put my existing redirects and, although the redirects I have set up in the past do seem to work, they are in a different format than you advise so I’m worried!

Example of the redirect codes I have been using:

Redirect 301 /about.html http://www.cranekalmanbrighton.com/about-ckb/
Redirect 301 /rosa-basurto http://www.cranekalmanbrighton.com/photographer-category/contemporary-photographers/rosa-basurto/

Should I be writing it like this instead?

RedirectMatch 301 ^/about.html$ http://www.cranekalmanbrighton.com/about-ckb/$1
RedirectMatch 301 ^/rosa-basurto$ http://www.cranekalmanbrighton.com/photographer-category/contemporary-photographers/rosa-basurto/$1

I don’t want to change the hundreds of redirects and still get it wrong, and I am a little bit confused by the use of the $1 at the end of the redirect.

Thank you for your help.
best wishes
Mariette


Viewing all articles
Browse latest Browse all 12471

Trending Articles