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
-
Clean URL vs. Parameter URL and Using Canonical URL...That's a Mouthfull!
Hi Everyone, I a currently migrating a Magento site over to Shopify Plus and have a question about best practices for using the canonical URL. There is a competitor that I believe is not doing it the correct way, so I want to make sure my way is the better choice. With 'Vendor Pages' in Shopify, they show up looking like: https://www.campusprotein.com/collections/vendors?q=Cellucor. Not as clean. Problem is that Shopify also creates https://www.campusprotein.com/collections/cellucor. Same products, same page, just a different more clean URL. I am seeing both indexed in Google. What I want to do is basically create a canonical URL from the URL with the parameter that points to the clean URL. The two pages are very similar. The only difference is that the clean URL page has some additional content at the top of the page. I would say the two pages are 90% the same. Do you see any issue with that?
Technical SEO | | vetofunk0 -
Pages with 301 redirects showing as 200 when crawled using RogerBot
Hi guys, I recently did an audit for a client and ran a crawl on the site using RogerBot. We quickly noticed that all but one page was showing as status code 200, but we knew that there were a lot of 301 redirects in place. When our developers checked it, they saw the pages as 301s, as did the Moz toolbar. If page A redirected to page B, our developers and the Moz toolbar saw page A as 301 and page B as 200. However the crawl showed both page A and page B as 200. Does anyone have any idea why the crawl may have been showing the status codes as 200? We've checked and the redirect is definitely in place for the user, but our worry is that there could be an issue with duplicate content if a crawler isn't picking up on the 301 redirect. Thanks!
Technical SEO | | Welford-Media0 -
Weird, long URLS returning crawl error
Hi everyone, I'm getting a crawl error "URL too long" for some really strange urls that I'm not sure where they are being generated from or how to resolve it. It's all with one page, our request info. Here are some examples: http://studyabroad.bridge.edu/request-info/?program=request info > ?program=request info > ?program=request info > ?program=request info > ?program=programs > ?country=country?type=internships&term=short%25 http://studyabroad.bridge.edu/request-info/?program=request info > ?program=blog > notes from the field tefl student elaina h in chile > ?utm_source=newsletter&utm_medium=article&utm_campaign=notes%2Bfrom%2Bthe%2Bf Has anyone seen anything like this before or have an idea of what may be causing it? Thanks so much!
Technical SEO | | Bridge_Education_Group0 -
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 -
301 redirect from sites closing down
Hi We have around 10 supplementary sites that have links to our site which are now closing down but are out of our control. We could have access to their domains so how could we maintain the link juice from these old sites which are going to our new site? However there will be no websites left on these old supplementary just domain names
Technical SEO | | ocelot0 -
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 -
How best to redirect URL from expired classified ads?
We have problem because our content are classifieds. Every ad expired after one or two mounts and then ad becomes inactive and we keep his page for one mount latter like a same page but we ad a notice that ad is inactive. After that we delete the ad and his page but need to redirect that URL to search results page which contains similar ads because we don't want to lose the traffic form that pages. How is the best way to redirect ad URL? Our thinking was to redirect internal without 301 redirection because the httacces file will be very big after a while and we are thinking to try a canonicalization because we don't want engine to think that we have to much duplicate content.
Technical SEO | | Donaab0 -
301 Redirect Issue
I'm having an issue with 301 redirects: Let's see if I can verbalize my thoughts on this one... So we just recently moved our site to Wordpress. One of our new 301 commands is redirecting oursite.com/news to oursite.com/blog . However there are other links from our previous site that look like oursite.com/news/XYZ and the issue is that, because wordpress structures its links differently, that URL is not equivalent to oursite.com/blog/XYZ. Instead, it might look something more like oursite.com/blog/yaddayadda/XYZ or something. Does that make sense? The issue is that when I find an old link of ours on google that looks something like "oursite.com/news/XYZ" or "oursite.com/news/ABC" it is automatically replacing "news" with "blog". When I try to go in manually and redirect anything that says "/news/XYZ" to "/blog/yaddayadda/XYZ" it still doesn't work. It still just replaces "news" with "blog." Wow I realize that might not make sense to anyone but if it does - please advise!! Thanks!!!!
Technical SEO | | EntrustSEO0