301 Redirecting weird URLs with % in them
-
I've been working on redirecting links reported as 404 in Google webmaster tools.
I've stumbled upon 41 URLs that Google is reporting as 404 that include a '%' in the URL, but I don't know how to redirect. Here is an example:
URL:
bond_information.htm%20Surety%20Bond%20Information,%20with%20FAQ
Attempted redirect:
redirect 301 /bond_information.htm%20Surety%20Bond%20Information,%20with%20FAQ http://www.mysite.com/
Unfortunately, after implementing the redirect, http://www.mysite.com/bond_information.htm%20Surety%20Bond%20Information,%20with%20FAQ still resolves a 404 error.
Anyone successfully fix these errors using Apache .htaccess?
-
Hi,
I think the issue lies in the original redirect
If you notice the 404 URLS all have the ending extension, then additional items, there would probably be no space here, as this was probably from a previous domain level 301
Also for ones like
redirect 301 "/ 20Sponsored" http://www.mysite.com/ quotations are not necessary, as there appears to be no space.
It is really hard for me to give you specifics - can you PM me a specific URL string that is 404'ing then I will send you the correct 301 expression and we can check that way?
-
Thanks. I was hopeful, but no such luck. I believe I implemented what you meant....let me know if the redirects below are what you meant or if I screwed it up.
redirect 301 "/blog/how-to-get-licensed-widgeted/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/blog/
redirect 301 "/blog/surety-widget-improvements-act-of-2006 22" http://www.mysite.com/blog/
redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/blog/
redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/blog/
redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/blog/
redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/blog/
redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/blog/
redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/blog/
redirect 301 "/blog/getting-your-new-business-widgeted/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/blog/
redirect 301 "/blog/getting-your-new-business-widgeted/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/blog/
redirect 301 "/blog/alabama-air-conditiner-contract 3C/ul 3E 20 3C/div 3E 20 3Cdiv 20class=" http://www.mysite.com/blog/
redirect 301 "/blog/getting-your-new-business-widgeted/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/blog/
redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/blog/
redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/blog/
redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/blog/
redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/blog/
redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/blog/
redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/blog/
redirect 301 "/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/
redirect 301 "/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/
redirect 301 "/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/
redirect 301 "/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/
redirect 301 "/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/
redirect 301 "/blog/what-widgeting-companies-look-for-in-a-contractor/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/blog/
redirect 301 "/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/
redirect 301 "/blog/what-widgeting-companies-look-for-in-a-contractor/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/blog/
redirect 301 "/surety-widgets/surety_widget.php 3Fwidget_form_id 3D1168 26widget_type_id 3D35" http://www.mysite.com/
redirect 301 "/surety-widgets/surety_widget.php 3Fwidget_form_id 3D12 26widget_type_id 3D105" http://www.mysite.com/
redirect 301 "/surety-widgets/ E2 80 8Bsurety_widget.php?id=346" http://www.mysite.com/
redirect 301 "/surety-widgets/ E2 80 8Bsurety_widget.php?id=304" http://www.mysite.com/
redirect 301 "/ 20Sponsored" http://www.mysite.com/
redirect 301 "/info/tool_surety_company.php 3Fid 3D106" http://www.mysite.com/
redirect 301 "/blog/performance-widgets-how-times-change/ 20Performance 20widgets 20- 20How 20times 20change" http://www.mysite.com/
redirect 301 "/surety-widgets/contract-widgets/construction_widget.htm 20?iframe=true&width=100 &height=100 " http://www.mysite.com/
redirect 301 "/surety-widgets/licensed-states/maryland_surety_widget.htm 20?iframe=true&width=100 &height=100 " http://www.mysite.com/
redirect 301 "/surety-widgets/contract-widgets/performance_widget.htm 20?iframe=true&width=100 &height=100 " http://www.mysite.com/
redirect 301 "/widget_information.htm 20Surety 20widget 20Information, 20with 20FAQ" http://www.mysite.com/info/
redirect 301 "/blog/congress-pushes-more-regulation-on-personal-sureties&sa=U&ei=pQwtT_rOPKbi2AW3oOCQDw&ved=0CC4QmAEwBA&usg=AFQjCNE-HBRRWwzjaNERMro6sEcFdmdd7Q" http://www.mysite.com/blog/
redirect 301 "/blog/congress-pushes-more-regulation-on-personal-sureties&sa=U&ei=lhUpT-6aEez4sQL29sHVAg&ved=0CC0QmAEwBA&usg=AFQjCNGLStPFLxiEzY35YzA6NFvM7aeQLQ" http://www.mysite.com/blog/
redirect 301 "/blog/congress-pushes-more-regulation-on-personal-sureties&sa=U&ei=jsAnT6LPD634sQK3panRAg&ved=0CC0QmAEwBA&usg=AFQjCNE0uBycDO_lWcgkRaC4iD_a5FLGkA" http://www.mysite.com/blog/ -
Hi -
Those are spaces -
Which in htacess would just be a space - but encapsulate the URL with spaces with " "
Such as
redirect 301 "/bond_information.htm Surety Bond Information, with FAQ" http://www.mysite.com/
Also i know formatting here is awful, but you need a space between old and new URI's
PS. it is not just the % --- %20 equals a space in HTTP resolves
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
-
301 Domain Redirect And Old Domain to a New one including pages
Hi, I need to 301 an old domain to a new one (new website) I need to 301 the domain to a new page not the new domain direct for example www.olddomain.co.uk to www.newdomain.co.uk/pagenew Then I need to also 301 all the other pages on the old domain to the new one for example... www.oldmain.co.uk/oldpage to www.newdomain.co.uk/newpage Issue is I can do one or the other not both, I can get the other pages to redirect but then the main domain wont redirect to the correct new page. Or I can get the old domain to redirect but not the internal pages. Thanks
Technical SEO | | David-Sharpe0 -
301 Redirect
Hello Moz Community, I have a question regarding 301 redirecting a new domain that contains keywords relevant to my website. However, I do NOT want to change my current domain. My main question is, by just redirecting this new domain to my current website, will those keywords in the new domain help with ranking in anyway? Thanks in advance for any help!
Technical SEO | | WyzeOwl0 -
Maintaining Link Value Of Old URLS With 301 Redirects
Large ecommerce site that has been around for a long time (15+ years.) During that time technology has changed a lot and we are running into issues maintaining 301 redirects for very old urls. For example we have a good amount of links to product and category pages. Some of the old links are to products that still exist and will exist for many years to come.(of note little to no traffic comes via these links. Most of them are close to 9 years old so they are buried deep within articles, forums, or websites) However as we make changes to the site and URL structure these old urls are taking up more resources to continue to maintain 301 redirects. I am Leary of no longer supporting them because I do not want it to impact rankings however there is concern on how much development time and technology resources it takes to continue to support as time goes on. Does anyone have experience handling redirects 3 or 4 url structures old? Looking for insight from someone who has crossed this bridge before.
Technical SEO | | RMATVMC0 -
Does any one have experience with SEO and .NET using 301 redirects?
A while ago I altered some of the URL's of my website. Google now thinks that I have two duplicate pages (duplicate content), I have asked my third party web developers (Who use .NET and a custom built CMS system) to simply 301 redirect the old URL to the other. However, my web developers say the following: "Solving the problems by 301 permanent re directs are out of the question as this would create infinite loops. Likely to bring down our server." They also wont do a canonical, as they say there is only one page (but two URLs) Firstly, has any one heard of this before and do they think this is true? Also, does anyone have an alternative method of getting rid of the old URL? Any thoughts would be much appreciated.
Technical SEO | | CoGri0 -
How does this rank? - a page that is 301 redirected
How does a 301ed page rank in google? In google I searched for" ikea.ca" which is set up as a 301 redirect to www.ikea.com/ca/en and was surprised to see the url --> www.ikea.ca actually ranking. IKEA Canada <cite>ikea.ca/</cite>IKEA Featuring Scandinavian modern style furniture and accessories. Include storage options, lighting, decor products, kitchen appliances and beds. Bedroom - Kitchen - Living Room - IKEA North York
Technical SEO | | Morris770 -
Do links that point to an old URL retain value if we have the correct redirects?
I've recently taken over SEO for my company. There are a lot of old links that point to our old URL (www.examplecountry.com changed to (www.examplewhatwedo.com). We have the correct redirects in place and Open Site Explorer shows many of the links pointing to the old site even though I'm inputting the new URL. I just want to put my mind at rest that any value these links have doesn't got lost due to the URL change. Unfortunately a lot of them have the old URL as the anchor text....which I guess will decrease their quality? Thanks!
Technical SEO | | MarbellaSurferDude0 -
301 Redirect & Cloaking
HEllo~~~~ People. I have a question regarding on cloaking. I will be really greatful if you can help me with question. I have a site www.example.com and it is targeting for multi countries. So I use sub directories for targeting multi countries. e.g. www.example.com/us/ www.example.com/de/ www.example.com/hk/ ....... so on and on. Therefore, when people type www.example.com, I use IP delivery to send users to each coutries. Here is my question. I use 301 redirect for IP delivery, which means when user enter www.example.com, my site read user's IP and send them to right country site by 301 redirect. In this case, is there any possibility that Google considers it as cloaking? Please people.... share me some ideas and thoughs.
Technical SEO | | Artience0