.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
-
Microsite and main website alternate in rankings
Hi all, I just noticed a potential issue with our websites. We have two ecommerce websites, one is a very large one selling all sorts of products, while the microsite focuses on a small segment of products. All products sold on the microsite are also sold on the main website. In the beginning of September, we upgraded the microsite to the same script that the main website uses to make it mobile friendly and update the design. They now look very similar. Before, both websites used to rank on page 1 for a specific keyword. I have noticed that since we upgraded the microsite, the two websites have been taking turns ranking for the keyword. For a few weeks the microsite ranks and the main website doesn't rank for the keyword. Then for a few weeks only the main website ranks and the microsite doesn't. I think the reason this is happening is that Google understands that the content is the same and the websites are both owned by the same company. Fair enough. I remember reading an article about this phenomenon before but can't remember where. Does anyone know which article I'm talking about (it would have been on an SEO blog/website, e.g. Moz, SEJ, SE Roundtable etc)? I'm not even sure what this phenomenon is called. If we can only have one of the pages rank, we would prefer it to be the microsite at all times. Would a canonical tag on the main website referring to the URL on the microsite fix this? I think at the moment the product descriptions are either very similar or identical. Would it help to make them more different to get both to rank again if that is what we wanted to do? In the end it is still the same product being sold by the same company - after Google has already sort of merged the two, would they "un-merge" them if the content was more different? Thanks in advance!
On-Page Optimization | | ViviCa10 -
On Site Question: Duplicate H2...
Hi All A few on-site audit tools pull information on duplicate H2 tags on pages. This implies it's a bad thing and should be fixed - is that the case? On one of my sites the tag-line is in H2 in the header, so appears on every page... Just wondering if this is something worth fixing. Thanks
On-Page Optimization | | GTAMP0 -
Keyword Stuffing Question
Say your on a e-commerce category page "Shirts" every lower level category has "shirts" in it such as: T-shirt, long sleeve shirt, sweat shirt, v-neck shirt, and so on. Is this page going to be penalized in google for the keyword "shirts" just because it is in the title and on the page a thousand times because i'm targetting words like "long sleeve shirt? and if it is, will the "long sleeve shirt" keyword be negatively affected as well? Answer much appreciated,
On-Page Optimization | | Mike.Bean
Thanks in advance.0 -
Panda 4.1 - Regained rankings by making changes on my site
So thought I would share this with others as it 'might' help. So I got around 40 pages, all of them have taken a dive in rankings so on average from Pg1/2 to Pg5/6. I took one page and started working on content upgrades, I had around 50 words of boiler plate content above the fold and 750 words of unique content way down the page so maybe 600px below the fold before you hit it. I removed the boiler plate content and produced 75 words of unique content to replace it, I shuffled things around and managed to get the 750 words maybe 250px below the fold then chucked another 100 unique words into the mix. Fetched the page in GWMT's and resubmitted the URL - hour later that page alone, the page I upgraded had recovered its rankings back to the original position before Panda 4.1 hit. Will the rankings for this page drop back down again, not sure but interesting this page was Pg6/7 since the 23rd and doing the above within an hour regained rankings back to Pg2 middle.
On-Page Optimization | | followuk1 -
Site appears to rank very low
Hi, A site we manage is ranking very low for it's main key phrases. The site is www.moremouse.com. For example for the phrase "orlando vacation rentals" it ranks around page 12 which seems very low considering the DA, PA, links, etc. compared to many sites ranking much much higher. Can anyone see anything obvious that is causing it to rank so low? Thanks Pete
On-Page Optimization | | QbicIS0 -
Table text : Does that influences the website's ranking ?
We are currently working on a new page for one of our clients and there is A LOT of writing, so A LOT of differents pages. If I decide to put the texts on table text instead of creating a link for another page, will that influence the ranking in any way ? I've been a web writer for only a year now and still try to figure out how to optimize the written part. Thank you for your answers.
On-Page Optimization | | marketingmedia.ca0 -
Keyword in URL: Ranking Factor?
I've got a site about a specific topic, which we'll call "themes" for the sake of this discussion. I personally like to keep the url structure short and clean (for usability purposes, but mainly because I'm a perfectionist and a minimalist). I feel that adding "themes" to the url structure is a bit redundant. However, nearly every keyword phrase that my site should rank for includes the word "themes." So I'm wondering how much I'm handicapping myself by not including the keyword "themes" in the url? The domain name itself sort of includes the keyword . . . although it's in Italian (I chose the domain for it's brand-ability, not for the keyword). A quick example: My Url Structure: www.themo.com/topic/abc My Competitor's Url Structure: www.sitesample.com/themes/topic/abc For many of the keywords, the competitors with the keyword in the url rank highest. But, I'm not sure how much emphasis to place on this, because from my understanding Google doesn't pay as much attention to url keywords anymore . . . and those sites might just be ranking high because they've been around for so long (which also happens to be the reason why they coincidentally also include the keyword in the url, because they started the site when that was a high ranking factor). Thoughts? Should I just trash my perfectionism and add the keyword to the url structure? (By the way, the site is only a couple months old and doesn't have any significant backlinks to inner pages yet, so changing the url structure wouldn't be a big deal if I decided to do that).
On-Page Optimization | | JABacchetta0 -
Does targeting more than one keyword or keyword phrase effect rankings?
Hi, We have a homepage where we are targeting three main keywords. 'Cheap books', 'buy books' and 'used books'. We are ranking well for cheap books and making progress on the more competitive buy and used. My question is how many keywords can you reasonably rank for on one page. We are targeting other keywords on other pages and having some success - but is three the maximum or is that too many?
On-Page Optimization | | Benj251