I have 4,100 302 redirects; How can I change so many to 301s
-
hi, i have way to many 302 redirects, how can i bulk change these to 301
i have started in cpanel but i could be old by the time i finsih
-
Absolutely. In fact I realised that I missed the above after posting but my edit did not register. I hope my editing priviledges are not revoked.
-
Dejan's solution is solid, but you may also want to try writing a redirect rule, using mod_rewrite for Apache (or ISAPI_rewrite in IIS). More info here - http://www.seomoz.org/learn-seo/redirection and here - http://www.seomoz.org/blog/url-rewrites-and-301-redirects-how-does-it-all-work
-
Browse to your .htaccess file in WWW directory and open it in editor (if you're using cpanel) or download edit and upload via FTP (safer option). You can do a find and replace on the file like with anything else. If you are unsure of the syntax create a single 301 in cpanel and see how it looks like when you open up the file.
Good luck!
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Redirecting old mobile site
Hi All, Trying to figure out the best option here. I have a website that used to utilize a separate mobile site (m.xyz.com) but now utilizes responsive design. What is the best way to deal with that old mobile site? De-index? 301 redirect back to the main site in the rare case someone finds the m. site somewhere? THanks! Ricky
Intermediate & Advanced SEO | | RickyShockley0 -
Multilingual Site and 301 redirection
Hey there awesome people of Moz I have this site that has many languages in it. The main language is English and my developer did the following www.example.com ( is the main site ) which redirects with a 301 to www.example.com/en if your geo location is supported by our languages then you will automatically be redirected to whatever language you have in your country but does the first language with is english have to 301 redirect to www.example.com/en ? I thought that the right way is to just leave /en at the root file. Thanks in advance
Intermediate & Advanced SEO | | Angelos_Savvaidis0 -
Unnecessary 301s?
hi mozzers, I'm doing an audit on a website. I detected over 60 301s of this nature: www.example.com/help 301d to www.example.com/help/. I believe these are completely useless and increase page load time. Am I right? should i kill those 301s? Thanks
Intermediate & Advanced SEO | | Ideas-Money-Art0 -
404 Pages. Can I change it to do this without getting penalized ? I want to lower our bounce rate from these pages to encourage the user to continue on the site
Hi All, We have been streaming our site and got rid of thousands of pages for redundant locations (Basically these used to be virtual locations where we didn't have a depot although we did deliver there and most of them was duplicate/thin content etc ). Most of them have little if any link value and I didn't want to 301 all of them as we already have quite a few 301's already We currently display a 404 page but I want to improve on this. Current 404 page is - http://goo.gl/rFRNMt I can get my developer to change it, so it will still be a 404 page but the user will see the relevant category page instead ? So it will look like this - http://goo.gl/Rc8YP8 . We could also use Java script to show the location name etc... Would be be okay ? or would google see this as cheating. basically I want to lower our bounce rates from these pages but still be attractive enough for the user to continue in the site and not go away. If this is not a good idea, then any recommendations on improving our current 404 would be greatly appreciated. thanks Pete
Intermediate & Advanced SEO | | PeteC120 -
Random post plugin creates 302 redirects. What should I do?
Just started work on a great MMA news site. In their footer, they have a plugin for random posts, which creates URL strings with '?random=1' on the end and then 302 redirects to a random article on the site. I know SEO-friendly protocol for redirects is to use 301 and not any of the other 300's. However, I don't really see the need to do 301s for these because of the fact that they are random! That said, I also don't want to leave 1000s of errors that can hinder the 'crawlability' (don't judge me - that's a word :)) of my client's site. My thought right now is to noindex the urls with the '?random=1' in the string, so the spider doesn't worry about crawling those links. Not sure if that is proper code, but it seems that would be quick and effective. Is there a better way to attack this? If you know, please share with me! WP publishers who use random post plugins: have you experienced this? How did you fix it within the friendly confines of Wordpress?
Intermediate & Advanced SEO | | Netrepid0 -
Is it a problem to have too many 301 redirects within your site
my website is translated into 10+ languages, but our news articles are often only published in 1-2 languages. Currently, URLs are created in the unpublished news languages that then 301 redirect the user to main news page since the content doesnt exist in that language. Is this implementation okay or is there a preferred method we should be using so that we don't have a large number of pages on the site with redirects? Thanks!
Intermediate & Advanced SEO | | theLotter0 -
301 Redirect - What happens to backlinks
Hello... One of my sites is losing rankings in G. I received the webmaster notification of unnatural links... My question is, should i do a 301 redirect of every page on my site to a new domain? If so, do the backlinks (which i believe are causing my rankings to drop) carry over? How about the good backlinks? Also, what would happen to the rankings i currently have on page 1? Thanks
Intermediate & Advanced SEO | | Prime850 -
SEO Strategy for URL Change
I'm working with a company who will likely have to change their URL because of a trademark dispute. They will be able to maintain the new URL for some period but will soon need to drop the existing URL all together. Aside from the usual keyword considerations when choosing a URL, are there any SEO strategies I should consider as we execute this change?
Intermediate & Advanced SEO | | Jon_KS0