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 file uploaded, website won't load

    .htaccess file uploaded, website won't load

    On-Page / Site Optimization
    5 3 199
    • 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.
    • dwebb007
      dwebb007 last edited by

      I uploaded the .htaccess file with the below, and now my website won't load at all? Then I deleted the htaccess file and it still won't load?  But then it would load on my phone when I took it down, not on chrome, or explorer? Then I put it back up and looked again on my phone, wouldn't load on phone. Then deleted file and it still won't load on my phone? What is going on?

      RewriteEngine on
      RewriteCond %{HTTP_HOST} !^http://freightetc.com$
      RewriteRule ^(.)$ http://www.freightetc.com/$1 [R=301]
      RewriteCond %{THE_REQUEST} ^.
      /index.php
      RewriteRule ^(.*)index.php$ http://www.freightetc.com/$1 [R=301]

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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • Pixelportal
          Pixelportal last edited by

          Hi have you tried it with " RewriteBase / "

          dwebb007 1 Reply Last reply Reply Quote 0
          • dwebb007
            dwebb007 @Pixelportal last edited by

            for what? Sorry not a code specialist

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

              You were almost there buddy. It looks like you have regex characters that need to be escaped with . Plus, most seem to prefer rewriting index before messing with www.

              Give this at try. I took a look at the site before the loop and it doesn't appear to use any CMS per se. If it were a WordPress site, you would want to place the code before the WordPress rewrites.

              P.S. You don't need the last comment in the example.

              1 Reply Last reply Reply Quote 1
              • 1 / 1
              • First post
                Last post
              • My website isn't showing on releated: google command
                dos0659
                dos0659
                0
                3
                60

              • Is It Okay If an Inner Page's Anchor Text Isn't Included in TDK Meta Tags of Point-to Page?
                BlueprintMarketing
                BlueprintMarketing
                0
                4
                201

              • When You Add a Robots.txt file to a website to block certain URLs, do they disappear from Google's index?
                Saijo.George
                Saijo.George
                0
                3
                205

              • Problemas with my htaccess file
                juanmiguelcr
                juanmiguelcr
                0
                7
                138

              • Using phrases like 'NO 1' or 'Best' int he title tag
                Webrevolve
                Webrevolve
                0
                6
                133

              • Client has 2 websites... won't do away with old site.
                MarieHaynes
                MarieHaynes
                0
                7
                294

              • Duplication About PDF Files on Website
                CommercePundit
                CommercePundit
                0
                3
                415

              • Corporate Client Won't Approve Landing Pages (of any sort)
                newwhy
                newwhy
                0
                4
                590

              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