Simple 301 Redirect for those who haven′t a clue
-
Description:
Two wordpress installations on same Windows IIS server.
One installation is an old blog.
We call it “OLD”.
The other is a newer site. We call it “NEW”
But there′s a problem.
We want to keep the old stuff (all the posts on OLD) and redirect each old post to its corresponding post in NEW.
The permalink structure of a typical OLD post is:
https://example.com/OLD/index.php/really-ancient-history/The permalink structure of that same post in the NEW wordpress installation is:
https://example.com/NEW/index.php/OLDSTUFF/really-ancient-history/See, we gave the old posts their own category subfolder (OLDSTUFF) in the new installation.
Now for all that horrible .htaccess BS rewrite, redirect, regexp (??? = confusing goobldygook).
To give new WP its own directory and behave as it it were in the ROOT, we followed the instructions (codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory)
That works fine. WP does the business for us lazy folks and kindly tells us to put this .htaccess in the ROOT (https://www.example.com/)
# BEGIN WordPress # <IfModule mod_rewrite.c> RewriteEngine On RewriteCompatibility2 On RepeatLimit 200 RewriteBase /NEW/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # </IfModule> # END WordPress
Nice.
But now we are lost with the next bit. How to redirect all that OLD content.
I admit i started reading some posts here but the instructions seem confusing and make big leaps and assumptions that you know what all that goobbledygook means.
So can we have some answer for lazy regular folks who don′t speak the lingo?
Het WP – how about a page of examples with nice copy paste code for DUMMIES?
Thanks.
- The topic ‘Simple 301 Redirect for those who haven′t a clue’ is closed to new replies.