htaccess - how to redirect certain pages to homepage?

nonai

BANNED
Joined
Oct 10, 2013
Messages
535
Reaction score
77
htaccess question

I have a domain that is part of my small PBN. It has a lot of inner pages. All of these inner pages contain weird characters in their URLs, like ? % =

I want to redirect these pages to the homepage to pass some link juice to the homepage. I dont want to redirect all pages that the domain has. Just these few pages. I have a list of all the pages I want redirected.

so for example, I want to redirect these:
domain.com/blog
domain.com/homepage/index.php?jsfisjfisd?option=3
domain.com/homepage/index.php?jsfisjfisd?option=4
domain.com/homepage/index.php?jsfisjfisd?option=55

I dont want to redirect anything else.

How can I do this? I have tried googling but all the examples online never have complex URL structures. I know how to do domain.com/blog but not the other ones.
 
Back
Top