New website server code errors
-
I launched a new website at www.cheaptubes.com and have recovered my search engine rankings as well after penguin & panda devestation. I'm continuing to improve the site but moz analytics is saying I have 288 medium issues and i see the warning "45% of site pages served 302 redirects during the last crawl". I'm not sure how to fix this. I'm on WP using Yoast SEO so all the 301's I did are 301's not 302's. I do have SSL, could it be Http vs Https?
-
Hi
as this is already a post which is markdr as answered it's better to make a new question and to reference this one (else nobody will notice). I would however strongly advice to ask this question as well on a more technical forum like stackoverflow.com
Dirk
-
Can someone please help me! the code that was suggested either didn't work or I'm not putting it in right as it broke my site and I have no idea how to fix it. This past weekend I put W3 cache on it and tinypng to compress my images and optimize the site. Google Page speed said my website is loading 30% faster but now I'm losing rankings again and the Moz crawl now says there are 618 pages with redirects compared to 300 last week. I didn't redirect any pages last weekend. Is it possible that the W3 cache did it? I was trying to fix the issues below from pagespeed which is why I put the W3 cache on it and did the image optimization.
Should Fix:
Eliminate render-blocking JavaScript and CSS in above-the-fold content
Optimize images
Consider Fixing:
Minify JavaScript
Leverage browser caching
Minify CSS
Minify HTML
-
Hi,
I am not really an expert in rewrite rules but normally the syntax is
RewriteCond: Condition
RewriteRule: If condition is met - use this rule to redirectThe order in which the rules are put is important - in the example above when putting first the redirect to https and then the rule that non-www should be redirect to http you are redirecting back to http instead of https.
So your htaccess would look like this (delete the italic part or replace the existing code by the italic version) - no guarantee it's going to work but worth a try. If not working - you could try to put your question on stackoverflow (regex & redirects are way to technical for most of us)
BEGIN WordPress
<ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L] => by default all url's in WP are redirected to index.php</ifmodule>RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d=> if file (f) or directory (d) are not found)
RewriteRule . /index.php [L] => redirect to root index
RewriteEngine On => the rewrite engine is already on - no need to put this a second timeRewriteCond %{HTTP_HOST} !^www. => if not www in request
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] => redirect to www(you could also try this rule:
RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]with example.com replaced by your site)
RewriteCond %{HTTPS} !=on => if not https
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L] => redirect to https(You could also try this rule RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} )END WordPress
-
i have tried again to insert the code and it broke my site again. I was able to edit the same file to leverage browser caching successfully so I don't know what i'm doing wrong. I tried movng this code to right below RewriteEngine On and before the Rewrite Base. I tried it at the end where I tried before, no luck. the file now looks like
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]Browser Caching
FileETag MTime Size
<ifmodule expires_module="">ExpiresActive on
ExpiresDefault "access plus 1 week"</ifmodule>END WordPress</ifmodule>
Does anyone have suggestions of how to implement Andy & Dirks ideas?
-
Hi Andy
When I tried to do as you suggested it gave me an internal server error. Please see the code below from .htaccess and the server error. I took it out for now.
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]
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^.$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.)$ http://www.%{HTTP_HOST}/$1 [R=301,L]</ifmodule>END WordPress
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@cheaptubes.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
-
No problem at all. Let me know if you get stuck.
-Andy
-
Thanks Andy. I had no idea how to fix. I will give these a try today as soon as I fix a cart shipping glitch.
-
Thank you Dirk. That must be what moz sees too. I'm new to WP & worked with a developer early on who turned out to be just kinda coasting thru easy 3-5 page sites but not very good with ecommerce sites like mine. I've spent months finishing and fixing it. if you want a laugh, my old site until 3 weeks ago was still in frontpage and that's why (along with outdated SEO methods) i got hit hard by algorithm updates. This site was built on another server and moved. I've still been fixing outdated links to the dev server where i find them. I will try your suggestion today
-
Hi,
As Dirk said, you have a lot of http & https issues so you should fix these with a bit of .htaccess code, as below.
`RewriteEngine On` RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
You also have some non-www to www issues. You can fix these in .htaccess at the same time...
`RewriteCond %{HTTP_HOST} !^www\.` RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
<code class="htaccess" title="in your .htaccess file">You should find this fixes a lot of your issues. Also check in your Wordpress general settings that the site is set to www.cheaptubes.com for both instances.
Let me know how you get on with these.
-Andy</code>
-
Hi,
The 302's are coming from redirects from https to http - example: https://www.cheaptubes.com/product-tag/monlayer-graphene-on-cu/ is redirecting to http://www.cheaptubes.com/product-tag/monlayer-graphene-on-cu/ with a 302 (you seem to have a lot of these redirects)
There also seems to be an issue with your url's. You have quite a large number of 4xx errors - mainly caused by trying to call .js files that normally would reside on the root & you try to call on a product page - example: http://www.cheaptubes.com/product/f-functionalized-graphene-nanoplatelets/js/foundation.min.js - while this file is actually on http://www.cheaptubes.com/wp-content/themes/cheaptubes/js/foundation.min.js - so I guess something is wrong with the way you construct your internal links.
Hope this helps,
Dirk
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
-
Explore by site - Site overview's servers
Hello, When I want to "Explore by site" and make a "Site overview", I have only 4 choices for the region : USA United Kingdom Canada Australia But the location of my business is in Chile.
Reporting & Analytics | | Sodimaccl
Does this have any repercussion or negative impact in the analytics ? Thank you.0 -
Sudden drop in traffic since website redesign – can't spot double firing sessions pre-update
Hi all, We launched an updated website around mid-April and have seen a long-term drop in unique page views and sessions since then. Between 25-35%. Page views returned to normal within a month, however. In terms of acquisition, we've not lost referrals or direct traffic, just organic sessions. I haven't seen any significant Google updates except for 'Fred' but that was in March (pre-website update). We did have to do some 301s and fix up an HTML and XML sitemap, etc, post launch – but that's been in place for a while now so shouldn't still have such an effect? We are also struggling with load speed at the moment, working on this at the moment. Didn't think this had a such a significant impact on ranking however. We've lost mostly non-UK traffic, especially USA. We're actually climbing rankings for a lot of new keywords I'm targeting, so I can't see how our SEO has been hampered. Frustratingly, I wasn't using Search Console or Moz Pro before this update, so can't compare much in the way of keyword traffic (I know I feel very silly now). I don't know if it's a reporting issue (I wish it was). I mean we had both GTM and GA tags on the website (I didn't know this until I looked into it) but these were present post website-launch. And I haven't found enough double firing sessions or page views to suggest we used to be getting double figures anyway. Before this, we were ranking brilliantly and getting more organic traffic than ever. All the best,
Reporting & Analytics | | landport0 -
PPC ads: landing page vs website page ... other metrics to consider?
I run 3 PPC ads in Chinese language on Baidu, of which one landing page consistently ranks around 5th amongst 80+ other English website pages. So, when our site was recently developed for Chinese language, I redirected the ads to the relevant Chinese website pages for a month to see which would attract more visitors (Chinese landing pages vs Chinese website). I haven't fully analysed the results yet, but what other metrics should I consider than just the volume of visitors? Landing page
Reporting & Analytics | | SteveMauldin
https://www.mogas.com/en-us/ppc-ads/mogas-球阀
https://www.mogas.com/en-us/ball-valves (in English) Website page
https://www.mogas.com/zh-cn/产品
https://www.mogas.com/en-us/products (in English)0 -
Specific Industry Website Conversion Rates: Lighting
Hi All, There's loads of info around on general retail conversion rates, but does anyone have any experience with online lighting shops and typical conversion rates? This is a highly price driven shopper, and from my experience so far they bounce around looking for the best price... We've recently taken ownership of this new site, and I'm not sure I can relate general metrics to this site... although there is lots of work to do on here! Cheers in advance.
Reporting & Analytics | | b4cab0 -
Universal Google analytics e-commerce tracking code?
Hi Mozzers, I have never setup a universal google analytics e-commerce tracking code before and my concern is what exactly do I need to add on the cart thank you page? Can someone send me a sample of code I need to be adding? What kind of customization does it require? The more details you can provide the better! Thanks!
Reporting & Analytics | | Ideas-Money-Art0 -
New GSC Search Analytics report: position mixes web and image
Dear all, I am auditing a site in Google Seach Console (GSC, formerly Google Webmaster Tools) and find the Position data in the new Search Analytics report very, very improbable. I suspect that even if you filter by "SearchType = web", the Position data does count the ranking of images in the Image search widget as a search position. Has anybody observed this as well? Here is the case: the site targets a quite broad search query in the bath room domain. I have made a number of searches with private browser sessions, different browsers, alternative IP address via a VPN, etc, and the look of the search result in the relevant geographical market is consistently the following. Three Adwords ads #1 organic result Images universal results widget #2-10 organic results The site’s first page ranks consistently around #15 of the organic results, hence on the second SERP. But it also consistently has an image in the Images universal results widget (usually #2 or #3). This is consistent with the data I have in Moz Analytics. Yet, the GSC Search Analytics report shows 2.2 as average position with the default SearchType=Web setting. I have done the search over and over, and never has a PAGE of the site ranked that high. Is there any public information how exactly the position is calculated? I mean, something more precise than the very general information on https://support.google.com/webmasters/answer/6155685?hl=en Is there any way to get the correct position/ranking? Thanks for sharing your experience!
Reporting & Analytics | | QRN0 -
Is my tracking code incorrect?
I inherited a website that has a host of issues. I set up Goal Conversions for lead generation and am getting this URL listed as a Goal Completion Location /l/24672/2014-07-31/b4dg5 I can tell it is a date but have no other insight into what or where this page is. Does anyone have experience with this and can offer a fix? A related question is how can I find the URL that triggers the Goal Conversion. I tried editing the goal but it doesn't show the URL anywhere. And the Goal Completion Location is sort of a misnomer because it lists the URL prior to the completion. Thanks!
Reporting & Analytics | | Nobody15969167212220 -
Is it possible to attached separate analytic codes for each campaign?
I am having difficulty in using different GA codes for each individual campaign- this must be possible. Can someone please advice. Thanks
Reporting & Analytics | | ChrisDingley0