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
-
Mass 301 redirect in htaccess
I use ScreamingFrog to generate sitemaps for my Magento 2 multistore, but I recently noticed two issues. Each category/page has two URLs. One with / and the end and one without. Every product has two URLs. One with /product-name and the other /shop/product-name. The URLs are canonicalised, but this is still a problem and I'm not sure exactly how to execute this in the htaccess file. So I need to: Remove all URLs without the / at the end and redirect them all to the URL with / at the end. Or vice versa. 301 redirect every single product (there are over 400) from shop/product-name to /product-name. How do I do this en mass in the htaccess file?
Intermediate & Advanced SEO | | moon-boots0 -
Htaccess maximum size?
Hello all, The company that develops our website recently contacted and asked me if we could remove a large amount of URL rewrites. I've described a few factors and my main questions below. Some information: One year ago we did a large migration. We went from 27 websites to one main website. We have got about 2000 rewrites in the htaccess file. And the file is 208kb. A lot of links from our old domains still have incoming traffic which are handled by the rewrite rules mentioned above. Questions:
Intermediate & Advanced SEO | | DPA
The company that develops our website said that the htaccess file is too large and is causing or could be causing us website performance issues. They have asked us to remove URL rewrites.
My question is:
a) How many rewrites is too much?
b) Is the filesize of the htaccess of any importance or is it just the amount of rewrites in the file?
c) Could we solve any potential server/website performance issues due to a large htaccess file in any other way? Increasing some values like 'post_max_size' or by any other solutions handled serverside? I do not have a lot of knowledge of htaccess rules but I've seen websites that handled over a million of rewrite rules. This is why I'm having doubts on whether removing URL rewrites is the only solution and possibly not the best solution for us. Hopefully you can help me any further and with the best way to proceed without losing traffic or causing 404 pages. Thanks in advance!
Iordache Voicu0 -
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 -
Htaccess redirect veriables
Hey, I'm trying to redirect all instances of "/archive_details.php?id=*" to "/public-affairs-job-archive.php". Is the below code correct? Redirect 301 /archive_details.php?id=* /public-affairs-job-archive.php Thanks, Luke.
Intermediate & Advanced SEO | | NoisyLittleMonkey0 -
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 -
.htaccess 301 Redirect Help! Specific Redirects and Blanket Rule
Hi there, I have the following domains: OLD DOMAIN: domain1.co.uk NEW DOMAIN: domain2.co.uk I need to create a .htaccess file that 301 redirects specific, individual pages on domain1.co.uk to domain2.co.uk I've searched for hours to try and find a solution, but I can't find anything that will do what I need. The pages on domain1.co.uk are all kinds of filenames and extensions, but they will be redirected to a Wordpress website that has a clean folder structure. Some example URL's to be redirected from the old website: http://www.domain1.co.uk/charitypage.php?charity=357 http://www.domain1.co.uk/adopt.php http://www.domain1.co.uk/register/?type=2 These will need to be redirected to the following URL types on the new domain: http://www.domain2.co.uk/charities/ http://www.domain2.co.uk/adopt/ http://www.domain2.co.uk/register/ I would also like a blanket/catch-all redirect from anything else on www.domain1.co.uk to the homepage of www.domain2.co.uk if there isn't a specific individual redirect in place. I'm literally tearing my hair out with this, so any help would be greatly appreciated! Thanks
Intermediate & Advanced SEO | | Townpages0 -
Modify .htaccess
Hi everybody, I need to modify the .htaccess in order to include a 301 redirect. But I am having some problems with this. I downloaded the file into my computer and then modified it with windows notepad, but when I upload it again to the server it is not working and turns down my website. Even if I do not change anything on it. So I guess there is a problem in the saving process. Any Idea or suggestion? Thanks, G.
Intermediate & Advanced SEO | | SilbertAd0 -
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