Hi there, I have a live Zoom workshop working later and I realise that my participants aren’t getting to the right page, eek it’s an emergency, I wonder if you can spot what I’m doing wrong?
I’ve added this code to my htaccess file to create a permanent redirect, but it’s not working.
The code is as follows:
Can’t really tell what you have posted, need to mark it as pre- formatted text.
RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^online_art_classes/$ https://www.thearthouseoasis.com/zoom_workshop? [R=302,L]
If i understand what you want then the above should work.
I setit up as a 302, you shouldn’t use 301’s until after you’ve tested. I wouldn’t do a 301 if you every intend to use the old URL again. 301’s are permanent, have no expiry date and can be cached forever.
Thank you @teefers you are a star that works perfectly. I have 2 other pages which I tried to apply the same principle but it’s not working, can you advise?
This is what I have so far:
The first rewrite rule I gave above might be being invoked prior to second one. Apache directives (htaccess is a local directives file) are processed top down.
The sample you show looks like you have an extra / at the start of the from URI.
ok yes I think my htaccess is a bit messy! Thank you I might delete the old stuff in my htaccess and start again.
The last redirect I need to sort is this one:
https://www.thearthouseoasis.com/online_art_classes/drawing/
to new
https://www.thearthouseoasis.com/zoom_workshops/drawing/
Thanks Dan, I just tried this with a few more redirects I need but have got into an utter mess.
Am going to leave site as is and people will have to work their way through it themselves.