The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. On-Page / Site Optimization
    4. .htaccess Question and Ranking

    .htaccess Question and Ranking

    On-Page / Site Optimization
    2 2 87
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ecrmeuro
      ecrmeuro last edited by

      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]

      1 Reply Last reply Reply Quote 0
      • ThomasHarvey
        ThomasHarvey last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Ranking keywords
          Nozzle
          Nozzle
          0
          2
          87

        • Why does keyword fluctuate in Google - I.E rank 48 - 13 - not ranked
          EricaMcGillivray
          EricaMcGillivray
          0
          4
          282

        • Page rank question
          MikeRoberts
          MikeRoberts
          0
          6
          130

        • Why are my rankings down?
          dawnieando
          dawnieando
          0
          7
          312

        • Some of my pages are ranking for terms which I want other pages to rank for. What can I do to effectively switch the ranking?
          GlobalLingo
          GlobalLingo
          1
          5
          563

        • Rankings
          Andy.Drinkwater
          Andy.Drinkwater
          0
          2
          866

        • Has anyone noticed a big delta between Google and Bing rankings? For example, we rank favorably in Google, but not so favorably in Bing. Are there different tactics I should use to rank better in Bing?
          Andy.Drinkwater
          Andy.Drinkwater
          0
          2
          949

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy