mod_rewrite & migration from Wordpress to Wordpress MU - How to redirect specific URLs?

Hi all,

I'm running a Wordpress blog in the root site of my domain right now but I want to move it to Wordpress MU and setup a new blog containing all the old info that is accessible by going to /technical.  I know how to do this using mod_rewrite so that all requests for / go to /technical but I want to run another site in the root.  For that reason redirecting ALL requests for / to /technical won't work.

How can I use mod_rewrite to redirect only certain addresses if I don't know what those addresses are?

Sorry if that doesn't make sense so please ask any questions necessary.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

This'll help u
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^/$ /technical

Open in new window

Number5ixAuthor Commented:
Won't that redirect ALL requests for /* to /technical/* though?  I don't want to do that ...
Maybe you should wait another month since MU has been merged into Wordpress 3.0

In the meantime, 3.0 Beta 1 is available if you want to check it out


Enable MU:

Here's some more info from the codex
Active Protection takes the fight to cryptojacking

While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.

Number5ixAuthor Commented:
Sure, I can understand the reasoning behind waiting for WP 3.0 but that doesn't solve the problem - I'd still need to configure mod_rewrite so that my old addresses are redirected to the new ones.

I guess I could just use mod_rewrite to rewrite my category names???  It's not dynamic though, that's my only concern.
Number5ixAuthor Commented:
Ok,  how about I reword this slightly ...


Does that make more sense?  :)
Then try this, it'll help u
Options +FollowSymLinks
RewriteEngine On

RewriteRule ^category/design/$ /technical/category/design/

Open in new window

Number5ixAuthor Commented:
No, that produces an HTTP 500 error.
Suppose the your site point out to the files inside “new” folder.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^test\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.test\.com$
RewriteCond %{REQUEST_URI} !^/new/
RewriteRule (.*) /new/$1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Number5ixAuthor Commented:
Thanks tpraveenraj.

Could you please explain what each of those lines does?
Jason C. LevineDon't talk to me.Commented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.