.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
-
Robots.txt Question for E-Commerce Sites
Hi All, I have a couple of e-commerce clients and have a question about URLs. When you perform a search on website all URLs contain a question mark, for example: /filter.aspx?search=blackout I'm not sure that I want these indexed. Could I be causing any harm/danger if I add this to the robots.txt file? /*? Any suggestions welcome! Gavin
On-Page Optimization | | IcanAgency0 -
Why Is this Website Not Ranking?
HI There - I have been working on this site: http://limohireauckland.co.nz - primarily for our keyword phrase 'limo hire Auckland' - I am running a campaign for this site from the Pro tools and using the pon-page report card this url achieves an A grade for that particular phrase. The client is working on links in the local community etc but we are not appearing in the SERPS at all for most of the phrases we are optimising for. There has recently been a huge redesign on the site (approx 6 weeks ago) and the old content was not great. Am I missing something really glaringly obvious? Or am I being too impatient?
On-Page Optimization | | AllieMc0 -
Do https sites rank as well as http sites?
2 Questions: Question 1 - We currently have our entire site running on https (the http pages 301-redirect to the https versions). Assuming that the https pages load as quickly as the http versions, is it a problem that the entire site is https? The only official answer I've been able to find is this 2011 video where Matt Cutts basically says "I don't know" - http://www.youtube.com/watch?v=xeFo4ytOk8M Question 2 - Is there any problem with having half our site running on https only (with the http pages redirected), and the other half (our blog) running on http only (with all https blog pages redirected to the http versions)? Thanks in advance for any input! Justin
On-Page Optimization | | JustinClark0 -
Couple of noob questions
Hi, couple of easy questions for you guys... Im a web designer and my #1 keyword is web design huddersfield. I own the domain huddersfield.com, and i will have a page titled web design. Now do i target the web design page or the index page as i don't want keyword cannibalization, but is it better for my index page to be the landing page? #2 Considering that huddersfield.com is my domain should i set the title to: web design huddersfield or just web design? please help.
On-Page Optimization | | klsdnflksdnvl0 -
Factors that Affect Alexa Ranking?
Hi All,
On-Page Optimization | | PrasanthMohanachandran
Can any one please help in the factors that effects Alexa ranking.
My website Alexa rank got increased at all of sudden. It was 600000 last month it got increased to 1000000 by today and i cant even find the rank in own country which was 22000 before. Please help me in this, my organic traffic and over all traffic is constant only, how ever my website got effected. Please suggest me on this0 -
SEO Location Pages - ALT Image Tag Question
Hello Guru's, I have a Hire Website whereby you can rent products online. I have created different Location pages for these which are in essence the same pages page but with different location specific urls, title tags , on page content etc etc. This helps me to rank for local search. These location pages also display 20 products per page. My question is Should I make the ALT IMAGE TEXT location specific for each of the 20 products . Example - Steam Cleaner Rental in "location" or should I only amend a few of the Atl Image Texts to be location specific. I don't want to come accross as spammy in google eyes but I also don't want to be seen as having duplicate content , images etc etc What do you think ? thanks Sarah.
On-Page Optimization | | SarahCollins0 -
Does a phone number in the title tag hurt your rankings in SERP?
Hi Mozzers, One of my client is a carpet cleaner and I was wondering if adding a phone number into the title tags would hurt our rankings . I am asking because the client has mentioned it and that we do have some space to add a phone number into the tag. Thanks
On-Page Optimization | | Ideas-Money-Art0 -
What is causing Bing and Google Rankings to Differ by so much?
Does anyone know the trick to have Google Rankings to be as good as Bing/Yahoo Results?
On-Page Optimization | | hfranz0