.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
-
Can lazy loading of images affect indexing?
I am trying to diagnose a massive drop in Google rankings for my website and noticed that the date of the ranking and traffic drop coincides with Google suddenly only indexing about 10% of my images, whereas previously it was indexing about 95% of them. Wondering if addition of lazy load script to images (so they don't load from the server until visible in the browser) could cause this index blocking?
On-Page Optimization | | Gavin.Atkinson1 -
When Content creation isn't an option...
I currently work as an SEO/SEO in training. Oftentimes I get projects that require me to look at well established websites of big brands, the kind one would assume put a lot of effort into their sites, and make SEO changes. Additionally they want "actionable" changes that can be made on the fly so content creation, and most linkbuilding, is usually out of the question. Does this limit me to just changing meta titles and descriptions? What if all that seems alright too?
On-Page Optimization | | Resolute0 -
Title tag terminology on website
Hi,
On-Page Optimization | | KasperGJ
I own a website (www.maleribasen.dk), which i'm currently making SEO on. The site actually ranks pretty good, top 1-2 on important searches. The title tag on the frontpage (and lots of other pages too) are "Maleribasen.dk - Buy and sell paintings" (translatated from danish - Maleri means painting). I'm thinking of changing the titles to "Buy and sell paintings | Maleribasen.dk" And then try to use the convention "| Maleribasen.dk" on every other title page. Sometimes use "Buy and sell paintings | Maleribasen.dk" as convention when title is too small. Like the overview of articles would be something like "Articles - Buy and sell paintings | Maleribasen.dk" A specific article would be "How to paint using oil painting | Maleribasen.dk" What do you guys think?0 -
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 -
Using phrases like 'NO 1' or 'Best' int he title tag
Hi All, Quick question - is it illegal, against any rule etc to use phrases such as 'The No 1 rest of the title tag | Brand Name' on a site?
On-Page Optimization | | Webrevolve0 -
Does 'XXX' in Domain get filtered by Google
I have a friend that has xxx in there domain and they are a religious based sex/porn addiction company but they don't show up for the queries that they are optimized against. They have a 12+ year old domain, all good health signs in quality links and press from trusted companies. Google sends them adult traffic, mostly 'trolls' and not the users they are looking for. Has anyone experienced domain word filtering and have a work around or solution? I posted in the Google Webmaster help forums and that community seems a little 'high on their horses' and are trying to hard to be cool. I am not too religious and don't necessarily support the views of the website but just trying to help a friend of a friend with a topic that I have never encountered. here is the url: xxxchurch.com Thanks, Brian
On-Page Optimization | | Add3.com0 -
Is it worth De-duplicating a large e-commerce website?
Hi all, Most e-commerce websites use the same product description as the manufacturers. We know duplicate content is a huge negative for SEO. We are thinking about de-duplicating ours but our website is so big - it has tens of thousands of products. To de-duplicate it would require a ton of resources. Do you think it's worth it to go ahead de-duplicate our website? Do you have a website where de-duplication was done and did you see any positive result? (if so, did you see a certain percentage increase?) Thank you in advance
On-Page Optimization | | truckguy770 -
Changing Ttile Tags & 301's
I recently began re-optimizing my title tags site wide. Could this cause 301 redirects and the loss of backlinks?
On-Page Optimization | | BeautyStop0