.htaccess Question and Ranking
-
I have some basic rules set up in my .htaccess file and just curious as to the implications of them as I seem to have a website ranking very low on Search indexes for no particular reason that I can fathom. My question is a follows
I have a htaccess rules set up in my application application that first strips the file suffix and then adds a closing brace for example
Rule 1: http://www.domain.com/my_page.php becomes http://www.domain.com/my_page
Rule 2: http://www.domain.com/my_page becomes http://www.domain.com/my_page/Will this rule expecially Rule 2 effect ranking or will these rule have no adverse affect on the website as my MOZ reports still seem to have pages listed win the Top Pages by PA section without the www? Below is an example of the htacess file.
RewriteEngine On
Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
RewriteCond %{REQUEST_URI} /+[^.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]Redirect non-WWW to WWW...
RewriteCond %{HTTP_HOST} ^contractor-accounts.co.uk [NC]
RewriteRule ^(.*)$ http://www.contractor-accounts.co.uk/$1 [L,R=301]Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L] -
I've had a look at your site (it's in the htaccess)
I've run a crawl on your site, there doesn't seem to be any redirect chains, which is good, so you've got no issues with what you have above.
However on a side note, I wouldn't rely on 301 redirects, you still have a lot of "old" links that are going through 301 redirects, I would update these so they don't need to pass through a redirect.
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
-
Sale page ranking for "[blank] for sale" keywords
My company's Ecommerce site has a sale category that is currently out performing some of our normal categories in the SERPs for "[blank] for sale" keywords. For example the sale category landing page is ranking for the keyword "vegetable seeds for sale" rather than the vegetable seed category. Has anyone ever dealt with a similar situation to this? or does anyone have general advice for optimizing (or weakening) sale pages?
On-Page Optimization | | Scoleman1 -
Ecommerce Canonical Question
Hi all, first question (eek) Could I pick the brains of fellow users around an issue we are having with canonical urls on a magento website. At the moment we do not have these enabled as it seems to break our indexing. Cut a long story short, we have thousands of products but haven't rewritten many of the descriptions from the manufacturers yet and so have noindexed all the product pages (freeing them as we go). The goal, for now, is to pull in traffic via the filtering options we have on the site The goal, for now, is to pull in traffic via the filtering options we have on the site. For example, if you go to Dresses, there then are several filtering options which would allow you to choose a colour, shape and material - if you wished to filter that precisely. These filtering options are all crawlable and so we would then have a page that google could index for, for example, Green Lace Maxi Dress. All good there, few people search for specific products and a lot search for types of products so we are covered. To get back to the issue at hand. If we enable the canonical option on our magento plugin it will stop us from being able to target these terms. Whereas the filtering option would create domain.com/dress/green/maxi/lace with the page title of Green Lace Maxi Dress, if we enable the canonical part of the seo plugin the canonical link which would be added to the page would be - instantly removing our ability to rank for longer tail dress related searches (we are not going to compete with the big players on the premium terms, yet!). There are alternative plugins we can buy for magento to add the correct tag, however, if every page's canonical just points back it itself like this, is there really much point spending nearly $1000 on the 4 licences we would need to cover our range of sites. Is it really necessary, in this case, that we have a canonical for the product filtering? Sorry for the long post, hope it made sense. Thanks for any assistance.
On-Page Optimization | | DSCarl0 -
General drop in rankings
We've made a LOT of improvements to our on page SEO and we've been on the right track, but since about 26/7 our rankings appears to have gone down. Since early 2015 we've reworked a lot of the copy on our site to improve the unique/duplicate ratio, we've redone a lot of urls that didn't make any sense. We've improved image alt-text and file names. We've reduced image size on most of the site and we have disavowed spam links (obvious ones like nike shoes and oakley glasses). We've basically improved on-site SEO as much as we can with headers and whatnot. We've been hacked 4 times since January and we had two partial manual penalties from Google, but they were quickly dealt with and we've switched server to one that is both safer and a lot faster. Most of the hacked content seems to have disappeared from Googles index but not all of it. We have also tried our best to deal with URL parameters and we've made 301's out of hundreds of URLs with duplicate content from old slideshows that basically only had an image. And there's even more things we've done like working a lot more with social media, but despite all that were loosing ranking every week and our SEOlytics SVR is at its lowest since early 2014. And we've never (afaik) bought links or anything like that. Obviously we're doing something wrong but frankly we're running out of ideas. We've lost rankings on individual important phrases but there's site-wide general drop.
On-Page Optimization | | Emil_780 -
Author Byline Question
What's the best practice for displaying author information at the beginning of an article? We're presently displaying it as: By <Author> • Jan 16, 2015 • <City>. We're considering making it even more concise by removing the term 'By'. Would be shooting ourselves in the foot if we did this? Any other ways we should optimize?
On-Page Optimization | | TheaterMania0 -
Website redesign and it's impact on ranking
Hey Everyone, I have had a website in place for over 7 years and I am now at the point where I need to implement a redesign in order to sell our product more effectively. -URL's will stay the same
On-Page Optimization | | Justin45
-Content will change but be very similar page-to-page
-Title & Meta tags will remain the same I'm planning on taking the site from a non-backend site to a wordpress site so the navigation will change. Does anyone foresee that this change will have any dramatic effect on site ranking? Thank You!0 -
This is a real dumb question about on page optimization
I've been reading the docs for using this site and am puzzled by the on page optimization reports, and the tactics for creating the reports. In no place can i find that you first must use the keywords you have identified to track in the campaign on pages on your web site. Am i missing something? From just reading how to do your campaign, it would appear that you never have to touch your pages with the keywords you want to track, all 500 of them for one page, if that's what you want to do. Not knowing how the application works, it is possible to imagine anything, including not needing to do the obvious steps of writing a well optimized page first. I want to presume that first you optimize your pages with the keywords you want to track, then go ahead and run your campaign. Although this is the obvious thing, I don't see that part of the seo puzzle being mentioned in any of the docs. Where do i hunt for that part of the equation?
On-Page Optimization | | highersourcesites0 -
I have a direct question about file structure.
This question is about a new file structure and SEO friendly URL's. Does a file name make a difference? I have a direct question about file structure. Our old site was formated with a URL of http://rousechamberlin.com/about_us.aspx our new site is structured http://rousechamberlin.com/AboutUs/ no file no extension. As the SEO guy of the company and not the programmer my feeling is this is killing us. Does anybody have any thoughts on this?
On-Page Optimization | | HeadWebChef0 -
Very basic hands-on type of question about SEO
Hello, I am a complete newbie to the world of SEO and I have read few thing available on the net about things to begin with (so google seo guide and then seomoz beginers tutorial) and I just wanted to ask if I understand the process correctly: So I have my website lest call it abcd.com and there I might have a subpage about certain type of robots or specific parts that these robots are built from. I do my keyword search using adwords keyword search tool. Where I get 10 phrases (phrase1, phrase2, phrase3 so on..) that could be used by users to search information about certain type of robots I wrote on my website. Let's asume all 10 of those phrases have low competition so they can all be used. And they are from the long tail ofcourse so let's say I can get 10,000 searches from them per month. Some of them would have 200 searches, some 1500, some 5000 per month in that google adwords report. After reading those basic tutorials I understand it this way: I put one or two best phrases of those 10 in my <title></p> <p>2) I describe the website as accurately as possible to those keywords in <meta description> i.e. Those specific robots are built from those specific parts - we know all about them.</p> <p>3) I put all of them in <meta keywords> phrase1,2,3, etc.</p> <p>4) I use one or two phrases in <h1> on the page with article</p> <p>5) then I use those phrases in the text that's on that particular page of my website - text is about certain type of robots and parts etc.</p> <p>6) I put photos on that page with alt descriptions that may contain some of these phrases</p> <p>7) to be honest I don't know how am I suppose to build links from that page about certain type of robots to anywhere else on my website - but I undestand that's the part of SEO as well</p> <p>And that's pretty much how I understand the basics of SEO. I read about it and I just don't know if that's what I am suppose to do. Silly me!</p> <p> </p></title>
On-Page Optimization | | lolskizz1