.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
-
Why is Moz's Schema so bare
I use to use Moz as an example by looking at their site using Google's Rich snippet tool, Today I checked and it is so bare with errors https://search.google.com/structured-data/testing-tool/u/0/#url=moz.com What happen?Why the sudden change?
On-Page Optimization | | uBreakiFix0 -
How to reduced dns requests on magneto website
How to reduced dns requests on magneto website, really stuck, read many documents but no where near resolving the issues.
On-Page Optimization | | Mikaai0 -
What's the best Magento Community blog extension?
We are looking at FishPig's Word Press Integrations extension. has anybody used it? Possibly a dumb question, but is SEO adversely affected by the fact it's a WordPress extension on a Magento site?
On-Page Optimization | | Anne_Marie_English0 -
How to view all 'followed internal links' on a page
I am trying to view all the followed internal links on a few pages of my website. The MOZ toolbar just gives me the total number of internal followed links. What is the best way to actually see all the internal links that are followed by the google bot from any particular page? Thanks in advance.
On-Page Optimization | | rjchugh0 -
How to name images for billingual website ?
I have a website where images are based on a different domain. And i am calling only one single image for english and french version. I m wondering if it s valuable to use both languages in naming the images like Apple-Pomme.jpg or if there might be any drawbacks.Thanks !
On-Page Optimization | | ennick0 -
Website accessible on http and https. Is it bad?
We noticed that our website is accessible on: http://www.example.com and https://www.example.com Both the versions have page rank of 4. Though on https version we have added canonical tag indicating http:// version as preferred. Is this fine or we need to use 301 redirect and let the site be accessible only on http:// version??
On-Page Optimization | | CyrilWilson1 -
Help I don't understand Rel Canonical
I'm really stuck on how to fix up Rel Canonical errors on a Wordpress site. I went in and changed all the URLs to remove the www and added / to the end. I get this message on page analysis details: <dt>Canonical URL</dt> <dd>"http://www.some-url.com.au/",</dd> <dd>"http://some-url..com.au/", and</dd> <dd>"http://some-url..com.au/"</dd> <dd>Well the first one with the www doesn't exists and the second two urls are the same! (Note that I have removed the actual URL for this post)</dd> <dd>I'm not sure how to read and fix the errors from the reports ether. The only issues I can see is that the 'Tag Value' has the www and the 'Page Title - URL' doesn't have the www.
On-Page Optimization | | zapprabbit
</dd>0 -
Keyword placement on home page or throughout the website
OK, I find the courage to ask this because there is not supposed to be a dumb question. Like all of us, I want my website to rank great with a particular keyword. Do I have to use this keyword only on my home page (the start page which I want to appear on top Google results), or does it make a difference if I use the keyword on several articles that I post on my website. These articles all have seperate links. Eg i want the www.website.com to be found by Google, but this website contains www.website.com/link1.html, www.website.com/link2.html.. etc. Will keyword usage on link1.html, link2.html etc be relevant so that www.website.com is found by Google? Or is every single page for itself? Hope I have explained that well and I would really appreciate your feedback.
On-Page Optimization | | polyniki0