.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
-
Ranking Expectations and Search Intent Alignment
I've recently implemented the page optimization recommendations provided by Moz Pro to help our site rank for specific keywords on certain pages. It’s been about two weeks since we've added these URLs/keyword parings. The optimization scores for the targeted keywords and URLs are looking strong. Also, we've crafted these pages with keyword optimisation in mind. However, we have a couple of questions as we move forward: Ranking Expectations: Since our optimization scores are good, when might we start seeing improvements in our keyword rankings? We know that SEO results can take time, but we would appreciate any insights on a typical timeline based on your experiences. Optimization and Search Intent: While the tool’s optimization suggestions have been helpful in regards to giving us a score for a specific keyword, we’re curious about how this factors into search intent. How does this tool take into account variations in search intent, especially if users search using slight variations of the keywords we’re targeting? Thank you so much for your insight!
On-Page Optimization | | Cricket930 -
Question on site structure
My client is a nationwide company. They provide building maintenance services in 7 different cities. In each city they provide a different range of services. They currently have a single service page for each service and no mention on that page of the cities they offer the service. The service pages are getting no SERP visibility. We are running Paid Search and recommending SEO. I'm wondering whether it would be beneficial to build out specific service pages for each city so the content is more relevant to both users and search engines. What is best practice in this situation? Client wants to dominate SERPs in each market for the services they offer.
On-Page Optimization | | SEOinSunnyNelson0 -
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 -
Home page optimisation question - Expanding box
Hi guys, I was wandering if anyone can help me on how google looks at expanding boxes now? What I am referring to is on our home page orderblinds.co.uk we have an article written which shows a taster of the information about the company, the user then has to click read more to expand the box and see the rest of the content. Is this bad for seo as when you view the html all the content is there but I'm sure google can work out that this text isn't visible until you click read more? Any feedback on this subject would be great,
On-Page Optimization | | OrderBlinds0 -
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 -
Scripts question
My question is whether search engines will crawl the page before or after scripts run on the page. I have a H1 that will be replaced with a canvas by jquery script. Will search engines see the H1 or the canvas?
On-Page Optimization | | lojdqvist0 -
I have a question about on page links or duplicate contant
Ok help me out here friends. I’m working with the warnings and errors for my site. I have two problems that relate to each other and I want to know if you had to choose what problem what would you choose. I’m running into some duplicate content and title errors because under categories for my products there are so many products that it creates more than one page and with each new page it has the same title or same content on the page. I tried to make this less in some cases by showing more products per page like 100 items and in most cases per category it will only show one page now. Now some times there’s still more than one page and also this creates too many links now on that category page. So I think I can get rid of all the to many on page links but it will make more pages and duplicate content and title tag. What would you guys do?
On-Page Optimization | | Dataken0 -
Rankings
The rankings have been in a pending status for several day. Is there a problem with the software? We are in the middle of our test month and need to be able to evaluate the software to decide if we will continue. Thank you
On-Page Optimization | | Barb1230