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
-
Is a canonical tag required for already redirecting URLs?
Hi everyone, One of our websites was changed to non-www to www. The non-www pages were then redirected to avoid duplicate issue. Moz and Screaming Frog flagged a number of these redirected pages as missing canonical tags. Is the canonical tag still required for pages already redirecting? Or is it detecting another possible duplicate page that we haven't redirected yet? Also, the rankings for this website isn't improving despite having us optimising these pages as best as we could. I'm wondering if this canonical tag issue may be affecting it. Thank you.
Technical SEO | | nhhernandez0 -
301 Redirects
Hi, We have migrated to a new domain name and I wrote my redirects as follows: Redirect 301 / http://www.healthpointe.net Redirect 301 /urgent_care_locations.shtml http://www.healthpointe.net/healthpointe-locations/ Redirect 301 /locations.shtml http://www.healthpointe.net/healthpointe-locations/ Redirect 301 /career_client_relations_rep.shtml http://www.healthpointe.net/careers/ My issue is that when I include the first redirect, which is to the main page of the website that the other redirects stop working. Any idea what the problem could be?
Technical SEO | | healthpointeseo0 -
How can I perform this 301 redirect?
I am working on a site for a colleague and have installed wordpress on their server in the wp directory, they want the root domain redirecting to the wp directory but everything i have tried seems to throw up errors. i need sample.co.uk to redirect to sample.co.uk/wp/ no matter which html file they are trying to access on the root of the sample.co.uk site help?
Technical SEO | | GrassRootsSEO0 -
301 redirects tanked our site on google - what now?
We had several hundred old pages on the site with duplicate content and new pages with fresh info on the same topics. So I redirected the old pages to the new pages. Next day, plop, we're dumped off google for almost every keyword. Dang I thought they didn't want duplicate content and old funky pages. What did I do wrong and what can I do to fix it? Thanks so much for anyone who can share their expertise. Jean
Technical SEO | | JeanYates0 -
Redirects 301
Hello, I need to reedirect a URL of a page that I have in my site (http://digitaldiscovery.com.pt/servicos-de-marketing-digital/publicidade-online/) to a new URL with SEO porpuses. Whats the best way to this? I use Wordpress btw. Tks in advance! PP
Technical SEO | | PedroM0 -
301 redirect issues
Hi all, I'm hoping someone will be able to help me with an extermley frustrating problem with 301 redirects in .htaccess. Basically I'm trying to redirect some old pages (from our old website) that stil rank to the new equivilent. For example - old url = www.domain.com/frames/news/company-news/news-reader.php?newsStoryID=395 New www.domain.com/news/article-title I've tried the simple redirect 301 /frames/news/company-news/news-reader.php?newsStoryID=395 http://www.domain.com/news/article-title But this doesnt work. I've also tried - RewriteEngine on
Technical SEO | | EclipseLegal
RewriteCond %{QUERY_STRING} ^newsStoryID=395$
RewriteRule ^/news-reader.php$ http://www.domain.com/news/article-title/? [L,R=301] Could anyone help? I've followed lots of tutorials that all match the above but it just doesn't work! The only other thing within the htaccess file is from wordpress for pretty permalinks - BEGIN WordPress <ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]</ifmodule> END WordPress Many thanks in advance!0 -
301 redirect .htaccess problem
Can anyone explain to me why this doesn't work? Redirect 301 /category/diamond-pendants/nstart/1/start/(.*) http://www.povada.com/category/pendants/nstart/1/start/$1 Im trying to replace everything after /start/ and insert it into the new url. Thanks in advance.
Technical SEO | | 13375auc30 -
301 redirects for individual products - should I keep the old ones?
Hello We are just now starting up a niche site that will be the new home for a large group of products from an old site. Apart from straight up informative text links, we have set up 301 redirects for the 100 most important products from the old to the new site. Right now, we are in a transition period where we openly tell our visitors that we have a new site for this certain group of products. My question is: for how long should we keep the products on the old site? Can we remove them straight away, since our intentions of the 301 redirects is to preserve the serp positions for the most important products? Does it matter to google if we let the products remain on the old site for a while? Regards
Technical SEO | | jsigwid
Oskar0