SPECIAL OFFER: Only $69 for access to everything in OSTraining for 1 year! You save $75!  1
Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!

Redirects htaccess

5 years 10 months ago - 5 years 10 months ago #118679 by Nick
Replied by Nick on topic Redirects htaccess
Hi Darlene,

For the first one, please try:
RewriteCond %{QUERY_STRING} option=com_eventbooking&Itemid=0
RewriteRule ^index\.php$ /certified-health-coach-raw-food-educator.html/? [L,R=301]

If that works, repeat the pattern for each one.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 10 months ago #118683 by KarmicVisions
Replied by KarmicVisions on topic Redirects htaccess
Thanks, you guys really are the best!!

Please Log in to join the conversation.

5 years 10 months ago #118688 by Nick
Replied by Nick on topic Redirects htaccess
Thanks for the kind words, Darlene! I'm glad that worked for you :)

Cheers,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 7 months ago #123342 by KarmicVisions
Replied by KarmicVisions on topic Redirects htaccess
We moved the blog from
/blog/entry/xxxxxx.html
to
www.domainname.com/about-us/blog/entry/xxxx.html

there are many entries so doing a standard 301 redirect presents a problem. I know there's a way to deal with this en mass, but having trouble, not sure the best approach.

You assistance please!
Thank you,
Darlene

Please Log in to join the conversation.

5 years 7 months ago #123343 by Nick
Replied by Nick on topic Redirects htaccess
Hi Darlene,

Something like the following should work:
RewriteRule ^blog/entry/(.*)$ /about-us/blog/entry/$1 [R=301,NC,L]

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

5 years 7 months ago #123348 by KarmicVisions
Replied by KarmicVisions on topic Redirects htaccess
Yes, thank you!!! I tried that but didn't get it right!

Please Log in to join the conversation.

5 years 7 months ago #123367 by Nick
Replied by Nick on topic Redirects htaccess
You're very welcome, Darlene! It sounds like you've gotten it right now. But, if for some reason it's still not working, please let us know and we'll be glad to help.

Kind regards,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining
The following user(s) said Thank You: KarmicVisions

Please Log in to join the conversation.

5 years 7 months ago #123380 by KarmicVisions
Replied by KarmicVisions on topic Redirects htaccess
Oh no yours worked like a charm! Great as usual!

My comment was that I had tried something like that before I asked for help but I was off on a couple variables which caused it not to work.

Thanks again!

Please Log in to join the conversation.

5 years 7 months ago #123381 by Nick
Replied by Nick on topic Redirects htaccess
Great! That's the way I took it as, but just wanted to be sure :)

I'm glad things are working, Darlene!

Cheers,
Nick

Follow us on Twitter - twitter.com/OSTraining
Like us on Facebook - facebook.com/ostraining

Please Log in to join the conversation.

Join today and get access to 1,000's of books and videos. Learn WordPress, Drupal, Magento, Joomla and more! Sign up today!