.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
-
New Page Not ranking?
One of this client's top keyword is "oak beams". They already rank well in the UK for other related terms like "reclaimed oak beams" at /reclaimed-oak-beams/ and "air dried oak beams" at /air-dried-oak-beams/ We have created a page at /oak-beams/ but this page ranks nowhere? Instead the reclaimed oak beams or air dried oak beams page ranks for the term "oak beams". Any ideas why Google is swapping between those pages and not choosing the /oak-beams/ page? A few notes are that the /oak-beams/ page is newest page on the site and yes I know there are no links pointing to it but there are no links pointing to the other pages either?
On-Page Optimization | | Marketing_Today0 -
How to 301 redirect, without access to .htaccess and to a new domain
There are few ways to do this and I would like to ask other Mozzers if they have found the best way. We have a site .co.uk and are moving it back to .com. However we do not have any access to the site folders for .co.uk. (We have to move it anyway as our provider is withdrawing their service). We have built our URL 301 redirect file and it is ready to go, but how to impliment it? We can repoint .co.uk to another site, and then redirect all traffic for each URL but this is quite messy, or just forget trying to 301 each page and just rediect the whole site.
On-Page Optimization | | BruceA
the .com has more authority already, but we ready do not want to frustrate visitors who are using a link to reach a product, only to find they hit our homepage and not the product. Your thoughts would be very welcome or other ideas Bruce0 -
Why am I ranking on both Bing and Yahoo and yet the rankings are declining on Google
I'm seeing ranking go up on both Bing and Yahoo and yet they are going down on Google. I did see a bunch of spammy links show up about a month ago but have managed to get all those taken down although did not get any warnings from Google in Webmaster tools about them was more of a preemptive measure. The site in question. http://www.gocitrusnow.com
On-Page Optimization | | mwaters19790 -
Which page to rank for a Keyword? Home Page or Deep Page?
So, we have a situation where there is one particular keyword we want to rank for. We have been up and down over the years, at our best probably position 4-5, and now at 20ish. Thats for our home page of course, which the majority of our linking is probably pointing at. We also have a sub page which is optimised for that particular service. The term is "web design brisbane".
On-Page Optimization | | MauriceKintek
So as you can imagine, Web Design is in itself a service and we offer others. Should we optimise our home page for it and remove the sub page?
Keep the sub page because its one our services and optimise both?
Do some kind of canonical thing?
Change our interlinking? All our competitors home pages seem to be the ones that rank, and it feels and looks better in results if its the home page, but if switching up to our sub page is better im all ears. Also if our sub page is somehow hurting or leaking SEO from the home page, id like to know as well. Would prefer to not have to provide a link, due to competition but if someone wants to know we can always PM.0 -
Trying to understand why i do not rank well for this keyword
Hi, i am working on a page at the moment and i am trying to work out why i do not rank well for the keyword gastric band hypnotherapy or gastric band hypnosis. The page is http://www.in2town.co.uk/Gastric-Band-Hypnotherapy any help on what i need to change to start ranking well would be of a great help
On-Page Optimization | | ClaireH-1848860 -
Quick Question on Redirects
This might be a silly question, but one important enough for me to ensure that I understand the best practice of URL redirects... I'm thinking of changing my URL's and hierachy of some of my WP subpages around, in order to logically fit the keyword into the url and place the subpage closer to the root domain. My question is, when doing this, can I simply edit the URL and create a redirect after the fact, essentially killing the old URL. Or, do I create the new page with the updated URL and hierarchy, keeping the old page live and intact, but have that 301 redirect to its new corresponding destination? Thanks
On-Page Optimization | | JayAdams320 -
Url question for seo
Would it be beneficial to use url that is a match for my keyword to help with seo, then have my currently url forward to that one so I don't have to change any marketing materials? I was one of the feedback that I got when doing the on page keyword optimization tool on seo moz. Thanks J
On-Page Optimization | | fertilityhealth0 -
Main landing page does not rank as good a single news article - why?
We are running several special interest websites in the German speaking market, covering outdoor sports and vacation topics. We are trying to focus on one main landing page for events and keywords, this should be number one für search engines. Besides we are producing numerous content (news, pictures, videos), which are supposed to rank well and to be found on Google News, but not to rank higher for the specific keyword than our designated landing page. It seems, that we fail with this attempt. Example one: The main page for the alpine Ski World Championships on our skiing portal www.skiinfo.de was supposed to be this one: http://magazin.skiinfo.de/3170--ski_wm_2011_garmisch-partenkirchen.html for the Keywords 'ski wm 2011' in Germany. We missed this goal. Many of our own news articles ranked higher. When searching for 'ski wm 2011' on skiinfo.de only directly after the World Championships, the main page was ranked on 33rd position - 32 of our own articles ranked higher. Why does the landing page rank worse than an article like this: http://magazin.skiinfo.de/3173-ski-wm-2011-tina-maze-gewinnt-riesenslalom-keine-deutschen-medaillen.html ? Another example: Our designated landing page for the Event 'International Mountain Summit' (a major mountaineering and climbing event in Bressanone/ITA) is this: http://www.bergleben.de/klettern/2148--international_mountain_summit.html (Keywords: international mountain summit, IMS). We are experiencing that our news articles rank higher, when they are 'fresh', this one still does: http://www.bergleben.de/klettern/2149-international-mountain-summit-4.html. Why? It would be perfect, if good content would strengthen the designated landing page. We are linking back to this landing page from each article in the breadcrumb, but this does not seem to be very successful. How can we achieve this?
On-Page Optimization | | Beatbuster0