Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

chrismichaels84 on "Redirect all urls beginning with a keywork (custom post type?)"

$
0
0

I am using WP Multisite with about 10 subdomain installs. I love it. What I need to find is the simplest way to redirect ALL pages that follow a key work to another domain. Similar to URL Mod Rewrite in function.

So,
phantomhearts.dmgstories.com/interactive/cabbot

is redirected to
bf.dmgstories.com/phantom-hearts/cabbot

I will already know that everything is phantom-hearts. So I need to capture the uri following interactive/ and attach it to the url bf.dmgstories.com/phantom-hearts and simply redirect it. The keyword (cabbot) will always be one uri segment.

More examples for clarity
phantomhearts.dmgstories.com/interactive/anadell -> bf.dmgstories.com/phantom-hearts-anadell

I have created several plugins, so I can do the code. I'm just not sure the best way to approach this. Where do I hook into?

Thank you a lot!


Viewing all articles
Browse latest Browse all 8245

Trending Articles