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
-
Someone redirected his website to ours
Hi all, I have strange issue as someone redirected website http://bukmachers.pl to ours https://legalnibukmacherzy.pl We don't know exactly what to do with it. I checked backlinks and the website had some links which now redirect to us. I also checked this website on wayback machine and back in 2017 this website had some low quality content but in 2018 they made similar redirection to current one but to different website (our competitor). Can such redirection be harmful for us? Should we do something with this or leave it, as google stop encouraging to disavow low quality links.
Intermediate & Advanced SEO | | Kahuna_Charles1 -
Googlebot being redirected but not users?
Hi, We seem to have a slightly odd issue. We noticed that a number of our location category pages were slipping off 1 page, and onto page 2 in our niche. On inspection, we noticed that our Arizona page had started ranking in place of a number of other location pages - Cali, Idaho, NJ etc. Weirdly, the pages they had replaced were no longer indexed, and would remain so, despite being fetched, tweeted etc. One test was to see when the dropped out pages had been last crawled, or at least cached. When conducting the 'cache:domain.com/category/location' on these pages, we were getting 301 redirected to, you guessed it, the Arizona page. Very odd. However, the dropped out pages were serving 200 OK when run through header checker tools, screaming frog etc. On the face of it, it would seem Googlebot is getting redirected when it is hitting a number of our key location pages, but users are not. Has anyone experienced anything like this? The theming of the pages are quite different in terms of content, meta etc. Thanks.
Intermediate & Advanced SEO | | Sayers0 -
Should I redirect 404s or should I eliminate them?
Hello! I am now checking a website that has been migrated months ago from osCommerce to Prestashop.
Intermediate & Advanced SEO | | teconsite
While I was checking crawl errors in search console I found a lot of 404s coming from the last website. The urls are mainly 4 types: popup_image.php?pID=125&osCsid=507c27261ba5ca2568f06ce5bad2ebc9 product-friendly-url-pr-125%3FosCsid.... product-friendly-url-p-125%3FosCsid..... products_new.php?page=228 I've have realized that the parameter pId, and the number that comes after pr- and p- is the product Id in the new website, so I think our team will be able to create an script to redirect those. My question is: Is it ok to send several urls to the same url?. I mean, the popup_image.php was not the product page, as its name says it's more like a popup page. We don't have now a pop up page for images, so I was thinking to send that url to the product page. the one with the pr- was product review page the one with the p- was the product page I was thinking on redirecting the 3 of them to the product page? Should I? Or should I just redirect the last one (p-) and eliminate the others from the index? And... the ones with products_new.php?page=228 I was thinking to redirect all to the page 1 of new products. Is it ok? thank you!0 -
Many changes carried out - Caused a rankings dip one week on?
Hi all! Last week various changes were carried out on a website which has large traffic daily.
Intermediate & Advanced SEO | | Whittie
The changes included; Re-structure of product meta titles ~500 Re-structure of product meta description ~500 Canonical link included on the majority of pages ~600 Meta details have only been changed mildly Title has gone from
Name | Product Code | Category | Company Name
To
Name | Category | Collection | Company Name
IF the title is shorter than 62 characters, the price gets added in.
Name | Category | Collection | Price | Company Name Descriptions have been cut shortIF description is over 156 characters the word on the limit is cut off and replaced with ... Canonical LinksReasoning for adding a canonical link for each product was to point Google in the right direction. Upper and Lower case within the URL are reachable .aspx / .html at the end of each page Canonical link added in the meta directing to a lower case version of the URL. Rankings have been reduced across various keywords, however a few have had a positive impact. Would you say this is a dip before a mild rise, or something I've done is harming the rankings and needs to be reversed? I'd appreciate any advice given. Many Thanks0 -
Can anyone explain this?
On Sunday 26th May, for about 40 minutes, we had about 25-30 direct visits from San Jose (we are a UK site). During this time our rankings increased dramatically and then as soon as the direct visits disappeared, our rankings went back to how they were prior to them visiting the site.
Intermediate & Advanced SEO | | Jonnygeeuk0 -
How can we improve the seo on our site?
Hello everyone. I have been reading through this site for a while and tried to put everything together that I have learned so far. Would any of you mind looking at our site and providing any pointers or areas we can still improve on or areas I completely missed. I appreciate any feedback you can give! Our site is faithology.com Thanks again! Brandon
Intermediate & Advanced SEO | | BMPIRE0 -
URL formating is it worth changing?
One of my clients sites has almost OK URL's, set up something like the following: keyword2_keyword3_keyword1 Ideally the URL's would be more like this: keyword1-keyword2-keyword3 My question is is there any point in changing them and 301 redirecting them over just to get the target keywords in a better order and change the _ to a - ? Has anyone tried this and its worked or not worked, I don't want to throw the baby out with the bath water. Justin
Intermediate & Advanced SEO | | GrouchyKids0 -
How do I go about changing a 302 redirect to a 301.
Hello Friends! Thanks for viewing my question. Ok,My question today is How do I go about redirecting a 302 link to a 301 link. I understand the benefits of doing this as far as link juice and how the Search Engines views the two Re-Directs. I am wanting to know where I would start to do this. Thank you in advance for any help or suggestions!
Intermediate & Advanced SEO | | FrontlineMobility0