HTAccess? Anyone...
- Started
- Last post
- 6 Responses
- sem
Hello All,
Has anyone got experience of changing these? its for a massive wordpress site/blog that has changed Domain Name.
I read somewhere that you can edit the Htaccess to not just 301 redirect the homepage, but that there was a quick way to change EVERY page on the site, i.e each post...there about over 50,000 on this site so you can imagine why a quick way is needed.
I know there are other methods, i.e 302 Redirect etc, however after LOTS of research I read that the way in question is the best way to maintain Google page ranking etc (which is very important for this site)
So yeah...
Read lots ABOUT it, but no one is showing HOW to do it? whoever helps will be owed a big hug from me and some from of cake? somehow?...ok something better ha.
Thanks in advance.
- sublocked0
Google "mod_redirect" ...depending on how you want the pages redirected you might need to use a regular expression to do it.
If you give a more concrete example of [old page] --> [new page] mapping I could probably help more.
- sublocked0
Also, having done this previously with a couple domains you'll want to edit some things in "google webmaster tools" to maintain rank. Specifically, you'll probably want to re-trigger a new crawl once you put the redirects in place.
- vaxorcist0
need more info... do you want to use 301's to redirect from:
www.website1.com/path-to-post -> www.website2.com/path-to-post
or
- nocomply0
I think what sublocked said is on the mark.
But that being said, I suck so bad at RegEx that I built a WordPress plugin to assist me with my own work-around solution which doesn't involve RegEx (which I always seems to screw up).
My plugin will automatically generate a list of all URLs within a WP install. You can then copy and paste that list as a starting point for a series of .htaccess 301 redirects.
http://wordpress.org/plugins/lis…
This is totally silly on a 50K+ post site, but for the sites that I work on which generally have less than 100 posts it does the trick in combination with some global find/replace in my code editing IDE.
- sem0
Thank you so much for the replies guys.
I found this handy plugin then on the support forum someone already asked how to do it so I just copied & paste from there.Thank you though :)