.htaccess file uploaded, website won't load
-
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] -
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.
-
for what? Sorry not a code specialist
-
Hi have you tried it with " RewriteBase / "
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
-
Blog On Company Website
I have a huge blog which is connected to a company website. This blog is full with dead links and spam comments. Is it worth to clean up? The website itself ranks very well in search engines. I'm amazed with all de spam that it still ranks. Do you think by removing all de dead links and spam the site will improve ranking in search results?
On-Page Optimization | | bill3690 -
Why would a competitor brand appear in our meta? - (i've never seen this before)
Why would competitor sweetwater appear in americanmusical.com meta? For example, Google: site:americanmusical.com ext:pdf rebate You will see this result: PDF]Nord Stage 2 EX $500 Rebate Form - Sweetwater <cite class="_Rm">https://www.americanmusical.com/ItemFiles/Rebate/NordStage2EX_05312017.pdf</cite>Your page is not mobile-friendly.May 31, 2017 - REBATE DETAILS: To receive your $500 rebate, send your completed form with a copy of your invoice or receipt and UPC codes to either the.
On-Page Optimization | | seo20170 -
How my website is dropping?
Hello there guys! My website www.ntcbrasil.com.br is dropping comparing to my competitors. My main keyword is: geotextil
On-Page Optimization | | ffbrunoff
And my main competitor is: www.mantasbrasil.com.br We have better and original content. We have better structure website with better SEO practice (so a i thought). I'm not able to find out what's making the difference between my website dropping and my competitors raking first. This is in google Brazil www.google.com.br If anyone could give me any direction i would appreciate. Thanks a lot!! Bruno Nunes0 -
Internal Linking : File Name or URI/filename.html
Hi, For crawlability, what would be the best way to do internal linking. /aboutus.html or www.xyz.com/aboutus.com Would this make any difference to the website in terms of SEO or bot crawling the website? Regards, Sree
On-Page Optimization | | jungleegames0 -
Social Media Profile and Website content dupe content issues ?
Is there a dupe content issue if your social media profiles and website have same content/copy ? For example if you have written great copy for your website home page then literally copy & paste that into your G+ co page introduction (since sums everything up perfectly and don't want to change it) would that have a negative effect or be perfectly ok ? cheers dan
On-Page Optimization | | Dan-Lawrence1 -
What's a reasonable bounce rate for school website?
Does anyone have a baseline on what the average bounce rate should be on a school website?
On-Page Optimization | | BillyBobGriffin0 -
Should I remove my footer? and criticize my website
The simple question, should I delete my footer or keep it. Visit TraxNYC.com I dont wont to give my personal opinion yet, just because I dont want to influence any answers. Delete it! - Explain why? Keep it! - Explain why? Good Luck!
On-Page Optimization | | DiamondJewelryEmpire0 -
Image Optimization - File Name Important?
I am currently working on a site with 100+ recipes that all have image file names that are relevant, but not optimized for keyword purposes. I'm wondering - from an SEO perspective - would it be worth my time to go back through all of the images and rename them with keywords in mind? On my own site I have always done this as a "best practice" but I'm curious - does it make a difference to search engines? Does anyone have any recent research/experiences that they would like to share? Thanks!
On-Page Optimization | | EssEEmily0