Is anyone able to check this 301 redirect for errors please?
-
Hi,
I had a developer write a 301 wildcard for redirecting old hosted site to a new domain. Old URLS looked like /b/2039566/1/akai.html
With varying letters & numbers.I have 26,000 crawl errors in GWT and I can only imagine it's because this is looping?
Can anyone advise if this would be causing grief?Thanks
PaulRewriteCond %{HTTP_HOST} ^vacuumdirect.com.au$ [OR]
RewriteCond %{HTTP_HOST} ^www.vacuumdirect.com.au$
RewriteRule ^/?$ "http://www.vacuumbag.net.au/vacuum-cleaners.html" [R=301,L]<ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
RewriteRule ^p/([0-9]+)/(.*) default/$2 [R=301,L]</ifmodule><ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
RewriteRule ^c/([0-9]+)/1/(.*) default/vacuum-bags/vacuum-cleaner-bags-$2 [R=301,L]</ifmodule><ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
RewriteRule ^p/([0-9]+)/(.*) $2 [R=301,L]</ifmodule><ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
RewriteRule ^c/([0-9]+)/(.*) default/$2 [R=301,L]</ifmodule> -
Hi Vac, send me a private message and in m y free time I'll be glad to help you, if I can condense the redirects in just one or two rules I'll definitely do that. However I think you don't have to redirect all your 404s. (further reading here)
It's natural for a site to have 404s you need to redirect only pages which are actually going elsewhere (as the redirect term indicates), for expired content or not available pages, you'll better create a customized 404 page to help UX on your site.
-
I've just deleted all his stuff from the htacess.
Should I now just do 301's for all the 404 errors that I can find?
I was hoping for a wild card (hence this guy doing it for me).
Anyone want to have a crack at doing it for me? Happy to pay a nominal fee -
Hi Vacbag, just one question, why do you have so many
<ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
[.................]</ifmodule>First if you have the rewriteengine On (and you should, because if not your redirect won't work at all) at the top of your htaccess, you don't need it in every ifmodule.
If you use the rewritebase rule, use it on top so ti applies to all the rules, without repeating over and over. Maybe I'm seeing jsut a bunch of your code, but I don't see the added value of having so many ifmodules...
-
I think I just found it.
He's used the wrong domain name.
Only realized when I cut & pasted.
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
-
Http -> https redirections / 301 the right way
Dear mozers, Thank you for your time reading the message and wanting to help! So, we have moved our WordPress to https and redirected all the content successfully via htaccess file. We used a simple 301 redirect plugin, which we are using to redirect old URLs to the new ones. The problem today is, the redirections in the plugin are not working for http version. Here is an example: htaccess redirect: http --> https Plugin redirect domain.com/old --> domain.com/new but, the url http://domain.com/old is not redirecting to https://domain.com/new while https://domain.com/old does redirects to https://domain.com/new What can you suggest as a solution? Thank you in advance! P.S. I don't think having 2 redirects for each version of the URL is the smartest solution Best wishes, Dusan
Technical SEO | | Chemometec0 -
Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL?
This is for an ecommerce site, and the company I'm working with has started selling a new line of products they want to promote.Should I make a new URL just so it can include a target keyword, then 301 redirect the old URL? One of my concerns is losing a little bit of link value from redirecting. Thank you for reading!
Technical SEO | | DA20130 -
Where is the 301 redirect?
Hi, in the last week I take an issue for 301 permanent redirect for a subfolder in the main website! In that folder i have a index.php file for a google map fullscreen edition and the only link who connects the wordpress website with the subfolder is only a direct link! Is that an error of seomoz app or something else? Thanks 1.jpg
Technical SEO | | petrospan0 -
Another 301 redirect question - penalty?
Good Morning, We have 2 sites have images and minimal text on them. The images have links that point to a 3<sup>rd</sup> site that facilitates eCommerce. Question: If we 301 redirect these sites permanently to yet a 4<sup>th</sup> site… 1) Does it violate any G’s guidelines 2) Should we delete the links embedded in the images (as they point to the 3<sup>rd</sup> site) Thanks
Technical SEO | | Prime850 -
Link Building Stragedy can anyone please give me advice
my site is www.in2town.co.uk Hi i hear a lot about having a linking structure in place and a linking stragedy but i am not really sure what i need to do even though i have spent months reading about it. What i have been trying to do is to link as many of the pages within my site to the home page and i am now looking at linking pages in my site to around my site to different pages, just like <cite>en.wikipedia.org</cite> So when i have a story on cheryl cole, i will make sure that i link from that story to another story i have on cheryl cole etc. But i would like to know what else i need to do. For my home page i want to rank for the following keywords Lifestyle magazine Lifestyle news celebrity news celebrity gossip showbiz news soap spoilers I would also love suggestions for other keywords i should be aiming for, for the home page. I find it hard as my site is a magazine site, so i do not have many places to put a description of each page of the site, so i would love some help on this and advice what i can do to let google know what my site is about. If anyone can help with putting a linking stragedy in place and what things i should be doing to increase my ranking for important keywords, then that would be great many thanks
Technical SEO | | ClaireH-1848860 -
Removing 301 Redirects
Is it safe to remove old 301 Redirects from an SEO standpoint and can 301s dramatically affect seo? Prior to switching our old domain over to our new domain, we had (and currently still do) tons of 301 redirects, because of optimizing our file names and structure. Then our old domain was redirected to our new domain in the same redirect file. So that being said, now that our new domain has been up and running for about 3 months, would it be safe for me to get rid of the old 301 redirects and redirect anything that was on our old domain to our new domains home page? This would clean up our redirects tremendously and I hope would help with SEO.
Technical SEO | | hfranz0 -
301 redirect problems on site not yet moved
I have re-designed one of my sites, the old site is all static pages on a Windows server, I have made the new sites and it is on a new server and is running on Wordpress. I have just finished testing it and so am nearly ready to switch over the nameservers to the new server, however I'm having some problems with 301 redirects. I have tried to set up a few 301 redirects on the new server to test before I change nameservers but they don't appear to be working. I would have imagined that they should (even though the actual page isn't hosted on the new server) or am I being very stupid here and I can't test a 301 redirect until the nameservers have been changed. Redirect 301 /magazines.htm http://.../~account/magazine-freebies Obviously the above with the stars (*) is the server address and route to my account.
Technical SEO | | Wardy0 -
Joomla 301 redirects
hi i am using joomla sef404 and i have 7000 not found pages in my webmaster google tool page. the trouble is i got rid of a lot of pages and also components so now i am left with loads of not found pages. what i want to try and do is to create 301 redirects so that i do not lose page rank. can anyone please let me know how to do this step by step please
Technical SEO | | ClaireH-1848860