Htaccess funny characters
-
Hi
Panda update,tickled, slapped and then punched us.
I'm now weeding through crawl errors, one of them is
http://www.flasharcadegamessite.com/26226-paper-airplane-flight.html">paper airplane flight
I tried 301 this to it's proper page using
Redirect 301 /26226-paper-airplane-flight.html">paper airplane flight http://www.flasharcadegamessite.com/26226-paper-airplane-flight.html
but the server starts spitting out 500 errors.
How does one add that rule into htaccess ?
thanks
-
Hi
I've already done away with our own embed linking facility and chosen addthis.
I'll have to read up on regexes.
thanks
-
You need to utilise some regex, though I'm unsure of the actual regex code to match ">
In future offer a service to embed a link, then bloggers etc will always get the right url and also you can control anchor text.
-
Hi
The offending link is a french blogpost.
I have a bout 2-300 various links like this where people posting on sites etc have entered incorrect urls.
What I would like to know is how do I cater for ("/.>) characters in htaccess?
thanks
-
You are probably experiencing this error because of the "> in the URL you are trying to redirect.
Looks like the crawl has highlighted the as an error as it may have found a malformed link linking to the Paper Airplane Flight page. It looks as though you have a link that may look as follows ">paper airplane flight Notice the extra "> after the link URL.
You need to find the offending link on the site and fix it. That will solve the error.
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
-
Does >70 character title tag affect a pages ranking in search?
We are a publication that puts out hundreds of articles a month. We have +5000 medium priority errors showing that our title element tags are too long. The title tag is structured like this: [Headine] | [Publication Name that is 23 characters] . However, since we are a publication, it's not practical for us to try to limit the length of our title tags to 70 characters or less because doing so would make the titles of our content seem very unnatural. We also don't want to remove the branding because we want it to go with the article when it's shared (and to appear when some titles are short enough to allow room in SERPs). I understand the reasons for limiting characters to 70 or less with regard to SERP friendliness. We try to keep key phrases in the front. People are more likely to click on a page if they know what it's about etc etc. My question is, do the longer titles affect the ability for the page to rank in search? To put it a different way, if we altered all the +5000 of the title tags to fit within 70 characters, would the page authorities and our site's domain authority increase? I'd like to avoid needed to clean up 5000 pages if the medium priority errors aren't really hurting us. Any input is appreciated. Thanks!
Intermediate & Advanced SEO | | CatBrain1 -
H2 header on MOZ bar showing 2,451 # of Characters
My page is Real Estate Listing Service on Wordpress. My H2 header shows 2,451 Characters.... It is picking up my property listings, is this a problem from an SEO standpoint? Any help would be greatly appreciated, and thank you inadvance If required: the website is www.latinproperties.com
Intermediate & Advanced SEO | | LatinProps0 -
Can an incorrect 301 redirect or .htaccess code cause 500 errors?
Google Webmaster Tools is showing the following message: _Googlebot couldn't access the contents of this URL because the server had an internal error when trying to process the request. These errors tend to be with the server itself, not with the request. _ Before I contact the person who manages the server and hosting (essentially asking if the error is on his end) is there a chance I could have created an issue with an incorrect 301 redirect or other code added to .htaccess incorrectly? Here is the 301 redirect code I am using in .htaccess: RewriteEngine On RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/.]+/)*(index.html|default.asp)\ HTTP/ RewriteRule ^(([^/.]+/)*)(index|default) http://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^(www.example.com)?$ [NC] RewriteRule (.*) http://www.example.com/$1 [R=301,L] Could adding the following code after that in the .htaccess potentially cause any issues? BEGIN EXPIRES <ifmodule mod_expires.c="">ExpiresActive On
Intermediate & Advanced SEO | | kimmiedawn
ExpiresDefault "access plus 10 days"
ExpiresByType text/css "access plus 1 week"
ExpiresByType text/plain "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-icon "access plus 1 year"</ifmodule> END EXPIRES (Edit) I'd like to add that there is a Wordpress blog on the site too at www.example.com/blog with the following code in it's .htaccess: BEGIN WordPress <ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]</ifmodule> END WordPress Thanks0 -
Best .htaccess guides in your bookmark?
It would be helpful if you can share .htaccess guides you're currently using. Thanks in advance! 🙂
Intermediate & Advanced SEO | | esiow20130 -
Annzoseo - Keeps Calling, funny SEO Phone Conversation!
This company annzoseo keeps calling to get me to jump on to their SEO package that would guarantee me top rankings on the keywords I currently bid on with Google Adwords.. I really love these kind of calls because it is so much fun to probe and see how they do things.. I did a basic crawl for the site and sure enough they are ranking for specific keywords they mentioned in their phone call. However if you do a deeper search you will find tons of directory links that are like an never ending loop of links from forums and web site testing tools where it places a URL. The call was dropped after I spoke to a tech and asked more questions about the process of getting links, etc. When I reviewed some of their customer testimonials from a normal perspective things look great however when you dig a bit deeper you see the problem for the customers. Example: /case/first-rate-plumbing-.html I took to first company listed .. The keyword they brag about is "emergency plumbing services in colorado springs" however they are not found on the first page anymore yet they claim it on their site at the same notion. The site firstrateplumbing-heating dot com does not even show up now after the recent updates from Google from what I can imagine based on the low quality and number of outbound links. Their sales team is contacting anyone who is advertising in the Google Adwords Program claiming that you are only getting 20% of all the traffic on the web.. However before they make these comments they should at least look at the website they are calling to see other things that company is already doing well with. I was blown away from this call, so I dug deeper and found these types of links for their company. Not only when you search for this company it has poor results however going to the second page I found a great link from Complaints, Reviews - Fraud SEO company it has a few companies complaining about the service... I am shocked, as an SEO myself to see companies out on the web taking companies hard earned cash and giving them noting in return but a possibility they may be flagged one day for spammy techniques that don't work anymore. Ok Ok, I feel like I am writing a novel here but I just wanted to get the word out about these types of slick oil SEO firms that pollute the industry and make the rest of us all look bad. Oh and I forgot they push they are certified by seocertification.org thats cool because All I have to do is pay some money and I am in... NICE I can keep going on with this site as a perfect example and examine more however, I would be curious on what the Group could dig up on this company.. IT would be a FUN little Project to help protect and educate other company owners not to get their company in a pickle with people like this...Sorry If I pissed anyone off.
Intermediate & Advanced SEO | | Ben-HPB0 -
What are the best strategies to organize a htaccess full of 301 re-directs
I have a client with a htaccess file that is a total mess! What are the best practices to organize all the re-directs, and make it more manageable in the future. Any resources would be appreciated.
Intermediate & Advanced SEO | | anchorwave0 -
.htaccess - error404 redirect within a directory?
Hi, One of my clients has a CMS website offering Health and Safety training. When the courses have been run they automatically drop off of the system which is great for the front-end of the site but this leaves pile 404 errors for the URLs. I am trying to put a .htaccess redirect in place that will redirect back to the main category for that course i/e : http://www.domain.co.uk/courses/highways/6-NRSWA/27-nrswa-operative-sept-11.html will redirect to http://www.domain.co.uk/courses/highways/6-NRSWA I have spent a looooong time hitting google for a solution but can't seem to come up with anything. If at all possible I would also like to be able to post a php variable via the redirect url so that I can display a message on the category page saying that the course is no longer available be please select a different course. i/e: http://www.domain.co.uk/courses/highways/6-NRSWA?course=not-available Any help on this would be most gratefully received.
Intermediate & Advanced SEO | | AdeLewis0 -
Why SEOmoz says to keep title tag not more than 65 character?
Why SEOmoz says to keep title tag not more than 65 characters? I have this question that what is the disadvantage if my meta title is 150 character? Why everyone focus in keeping it short ? If i put all my important keywords in starting of title tag say in first 65 characters and keep the title 100-150 character how can it hurt my website? Google will consider 65 character, right but it won’t penalize me for having 110 character then please explain Why we focus so much… 🙂 I know i used too many why 🙂 just to tell i am nt a lawyer 😉 just trying to act like one 🙂 , just kidding.
Intermediate & Advanced SEO | | ShashankGupta0