.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
-
Content that's behind CSS..
For content that's been loaded onto the page.. but it requires a click for it to be revealed.. as in a slider, or a tab, to save space or for a page's organization.. what are your thoughts on Google counting or weighting this content? It would make sense for Google to give it partial or no weighting as if Google attributes the content to being there, its confusion for the user to land on the page and have to find it/click around to find it.. Sorry if this is an obvious question to SEOs.. I've always assumed as long as it was loaded, it'd be mostly counted.. but I'm beginning to doubt my assumption. Thanks!
On-Page Optimization | | speedcommerce0 -
My website isn't showing on releated: google command
Well the title says everything... I really cannot understand why this happens... if you want to check by yourselves just copy paste the following in google: related:www.pccdkeys.com
On-Page Optimization | | dos06590 -
Using a dash or underscores in file names.
Is it better to use a dash or an underscore in file names to improve SEO? EX memory_flash.jpg or memory-flash.jpg Or does it make no difference?
On-Page Optimization | | Robotnik0 -
How to check duplicate content with other website?
Hello, I guest that my website may be duplicate contents with other websites. Is this a important factor on SEO? and how to check and fix them? Thanks,
On-Page Optimization | | JohnHuynh1 -
What are your top tactics for boosting your site's Author Rank?
Mike Arneson has an excellent Mozinar where he shares some helpful Author Rank tactics. What specific tactics are you doing to boost the Author Rank of your site?
On-Page Optimization | | ProjectLabs1 -
SEO for standard website pages
How do you folks approach adding some SEO value to the standard "every site has them" pages like "About Us", "Contact Us" and such? I struggle trying to find some relevant non-branded content. We normally cover all the customers relevant services and product offerings in pages specfiically tailored to that content, but don't want to waste pages if they could have some value in drawing traffic. Any great ideas, Mozworld? Thanks, Mark
On-Page Optimization | | DenverKelly0 -
Should we create separate product descriptions for our customers' web sites?
Still got my SEO learner plates on, but I'm trying to help a small e-commerce site which makes and sells baby products . They have upwards of 150 independent retailers also selling their products. Mindful of the fact that many of these retailers are copying the same product descriptions to use on their own web sites, I wondered if there was any value in creating separate sets of product descriptions, one for our web site and one for all their trade customers, in order to minimise the amount of duplicated content devaluing our site. In theory Google ought to know that ours is the original source of the content, but some testing has shown customers ranking higher for the same product descriptions. We have a separate area on the site for trade, which contains lots of media information they can use, and we could include a set of product descriptions in this area for trade customers to download, keeping a unique set of product descriptions for ourselves. We won't stop duplicate content entirely, I realise - but do you think it's worth the effort of trying to implement? Our web developer thinks it's a total waste of time and not worth bothering with for the miniscule benefit he thinks we'll gain. Grateful for any pointers.
On-Page Optimization | | Mandy_Cochrane0