.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
-
Excessive Loading Speed
Hi Guys!
On-Page Optimization | | SEOTOOLSHERO09
I have an animation website which loading speed is too less. Due to too many videos, i want it to load fast.
Please help me increase my website speed i,e,
https://www.ideasanimation.net/1 -
My Site's Name Not Ranking in Google
Hey all, I've seen a few posts like this. But I wanted to start a new thread in hopes I may find the underlying issue. I've had my site: http://www.ctrl-alt-success.com for about 2 years. Recently I've started really adding a lot of content to it. (about 2-3 posts a week). I get zero organic views which is fine as I know it's still in the beginning. But here's my main question. If I type "ctrl-alt-success" into google. I get some site that shows up. "ctrlaltsuccess.com" I've been looking at this issue forever. That site has been "coming soon" for nearly 2 years. lol My site doesn't even show up on the first 10 pages of google. However in Bing and Yahoo it ranks on the first page. What could my site be doing wrong that it's not even ranking for the exact domain name? Keep in mind, if I google "ctrl-alt-success.com" my site comes up fine. Any help would be appreciated, thanks!
On-Page Optimization | | Ctrl-Alt-Success0 -
How can I fix multiple 404 errors with Wildcard htaccess redirect
Hi all I hope that someone can help.... How can I fix multiple 404 errors with Wildcard htaccess redirect The url in question is: How can I fix multiple 404 errors with Wildcard htaccess redirect http://www.5starweddingdirectory.com/listing/search/Category/luxury_hotels_venues_uk_wedding_venues/exclusive_use_venues/letter/c http://www.5starweddingdirectory.com/listing/location/uk-england/bedfordshire-weddings/franklin-park http://www.5starweddingdirectory.com/deal/location/uk-england/chorley-weddings/curtis-bay etc, going to http://www.5starweddingdirectory.com/business the above is just a few examples, google webmaster is showing over 8.000 404 page not found errors. Thanks in advance.
On-Page Optimization | | Taiger0 -
I'm puzzled
Last week we decided to run a facebook campaign with a small offer, any way cut a long story short. www.specialistsonlinepaints.co.uk was dropped by google when the penguin update took place in 2012, however it has been re included by google but nothing really returned in terms of search results. so our facebook campaign reached over 3k of people according to the stats but no one purchased anything or even clicked to visit the website. am I missing something in terms on onpage, black listing etc? Im at a loss at the minute.
On-Page Optimization | | TeamacPaints0 -
800 number on website
Hi, My client just sent me an 800 number that he would like to use to replace his number on the website. I know that it is best to keep a local phone number on the website and across all citations for NAP/Local SEO reasons. Is there anywhere that I could still incorporate the 800 number and not have it affect SEO? Thanks, Erin
On-Page Optimization | | HiddenPeak0 -
Wix.com Website Builder Html5 and SEO, what is your opinion
I'm planing to built a multilanguage website using a website builder. After reading websitetooltester.com reviews I came to the conclusion, wix.com should be the website builder I need. My first reason are the templates and there multilanguage options. But there is one thing, ready the review they mention: ''This is a bit technical; you can find the short version below. Wix is using the “single page pattern” meaning that the complete website code is essentially on one page. This works well for website visitors but not necessarily for Google as contents will be shown dynamically using Javascript and DOM manipulation. To solve this, Google supports something called ‘escaped fragments’ (or ugly URLs). With regards to Wix, it means that URLs will end like this: “#!wixseo|cqh1”. Google replaces the “#!” by “?escaped_fragment=” and receives only a minimal text-only page without Javascript. And this works well for Google. Try it here:
On-Page Optimization | | BigBlaze205
http://www.html5-websitebuilder.com/?escaped_fragment=cqh1 The official page ID is “cqh1” and not “wixseo”. But as the URL contains both IDs, the visitor can even see a description that’s readable by humans (and that’s important for SEO). You may have seen URLs containing “#!” already if you are a Twitter user.'' Should I worry about Google indexing all the pages? Is this website builder SEO frendly? Thank you for your help and time, BigBlaze0 -
Testing page load speed
Anyone have a recommendation for a simple way to measure page load speed?
On-Page Optimization | | dschreib_greenpeace.org0 -
How to Resolve Google Crawling Issues for My eCommerce Website?
I want to resolve Google crawling issues for my eCommerce website. My website is as follow. http://www.vistastores.com/ Google have crawled only 97 webpages from my website. My website is quite old. (~More than 6 months) But, Google have indexed only 97 webpages. I have created one campaign over SEOmoz tool and found some errors over there. So, I just assumed that due to it Google did not crawled my website. But, I have created one another campaign for my competitor website to know actual status and reason behind it. I found that, my competitor website have more error compare to me but, Google have crawled maximum pages compare to me. So, What is reason behind it? How can I improve my crawling rate and index maximum webpages to Google? [6133009604_af85d29730_b.jpg](img src=) 6133009604_af85d29730_b.jpg 6133009604_af85d29730_b.jpg 6139706697_4e252fdb82_b.jpg
On-Page Optimization | | CommercePundit0