.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
-
Need help on declining page rank
Hi Guys,
On-Page Optimization | | Slideuplift123
We had a consistent page ranking for a specific keyword between 5 and 8 positions on google. This week all of a sudden the page which was ranking for that keyword no longer ranks for it and another page has started ranking for that keyword that too at 20th position. I am so confused why has this happened? I didn't do any changes to that page or to the now ranking page. Can anyone help why could this be happening?0 -
Should my home page be ranking for services provided?
Hello, Should I be tracking and trying to rank my home page for the services we provide? For example, I have separate pages for services that I will be ranking for, but should I also be adding those same service keywords to my tracking list for homepage? Or just merely mention that we have those services on the homepage and leave the attempted ranking of those for their service page? I hope that is clear... Thanks in advance
On-Page Optimization | | Gavinn1 -
Do sites with more pages rank better?
If a site has more pages and also has good internal linking, then logically it would rank better. Is this the case? Should I be building big (but high quality) sites?
On-Page Optimization | | T0BY0 -
Ranking Oddities
In my local marketplace, I have competitors who have the following: unoptimized title tags and description tags (really long using keyword stuffing), stuffing keywords into the Meta keywords tag, lacking keywords in the body copy, using spammy footers or sections of text with a lot of local cities listed where no physical business is located, unattractive design (in my humble opinion), lower page authority, lower domain authority, lower number of back links and are organically outranking my site that I have tried to optimize using the MOZ tools, Market Samurai, other tools, and other great advice provided by people much more knowledgeable than myself about SEO. I don't understand how these sites that lack SEO continue to rank in the #1 or #2 spots in Google for my main keyword phrase + location, while my site is either not in the top 50 or in the top 40s range. How is it that sites with little to no optimization, no blogs, and very few backlinks, continue to rank quite well? These are not all new sites. Domain ages range from 1 to 10 years. What I am seeing appears to go against the grain of SEO recommendations. Any general thoughts?
On-Page Optimization | | ajgrossman1 -
Impact of number of outgoing links on Page Rank of an optimized page?
What is the current best practice on preferred number of outbound links on a page you are trying to rank with: According to online resources form a pure page rank perspective a high number of outbound follow links can have a negative impact not only on child pages but also the page itself
On-Page Optimization | | thomaspro
http://pr.efactory.de/e-outbound-links.shtml Other resources suggest that particularly placing high quality outbound links on a page (nofollow) increases the trust and authority of a page Are there any other elements to keep in mind? Is the best practice to avoid any follow links on a page you want to rank well in Google for? Thanks /T0 -
Page Rank drop from 4 to ?
Our site (ecommerce) has been around since 1998. The pagerank has gone from a 4 to a ? The Moz score is still good, but traffic is way down. Never got a warning from Google, and were never part of a BH linking scheme? I'm puzzled? There are some duplicate content issues and missing meta tags, but they were on customer login pages that we have since blocked? Thanks
On-Page Optimization | | rglaubinger0 -
Meta Description Question
Is it ok to put your domain name in the meta description if that is the name of your company? so if my company name is BlaBla.com and I want to have a meta description like Shop for your next Widget at BlaBla.com. We have Widget in 30 colors. Free shipping for orders over $50. and I am obviosuly promoting the widget page is this ok. I am concerned that Google will not like the domain name in the meta description. After Peguin I am paranoid about my shadow.....LOL
On-Page Optimization | | freestone0 -
Redirect and page ranking
We used to have a good page rank of Google, but now our page rank dropped to zero. A few months ago we did a redirect from our www.???.com to non-www.???.com, because non-www.???.com is now our main website. We also have a number of other domains which we redirect to our main website non-www.???.com Do you think these redirects are causing the problem, and if so what can we do to fix it? Thanks!
On-Page Optimization | | poupette0