Skip to content

Instantly share code, notes, and snippets.

View MsChanadlerBong's full-sized avatar

MsChanadlerBong

View GitHub Profile
@MsChanadlerBong
MsChanadlerBong / shtuff
Last active October 16, 2019 16:02
htaccess rule clarification
Hi, I'm not a coder but I need some help with an htaccess file. I need to 301redirecct posts and query strings to a subfolder one or sometimes 2 levels back.
Example 1
https://domain.com/archives/a-time-to-be-thankful/lightening-295/?bh_tour_taken=yes
REDIRECT TO
https://domain.com/archives/a-time-to-be-thankful/
Example 2
https://domain.com/archives/trade-alert-short-this-luxury-retailer/carnival-281/
REDIRECT TO