.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
-
What is robots.txt file issue?
I hope you are well. Mostly moz send me a notification that your website can,t be crawled and it says me o check robots.txt file. Now the Question is how can solve this problem and what should I write in robots.txt file? Here is my website. https://www.myqurantutor.com/ need your help brohers.... and Thanks in advance
On-Page Optimization | | matee.usman0 -
How will ranking keywords add on my website
Its been a lot of time since I have launched my website but I am not getting any ranking keywords can you please help me about the following factor or provide some solutions my website is about selling third-party antivirus and technical service: norton.com/setup
On-Page Optimization | | Mehakayna0 -
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 -
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 -
Optimizing an e-commerce website
Hi, What do you recommend me to optimice an e-commerce website to rank every page or product? Do I have to implement schema and meta description for every product or is easier to optimice every category?
On-Page Optimization | | AbacoDigital0 -
My website is being opened by multiple URLs?
Dear Friends, I have a website which is being opened like example.comand example/index to same page. Is there any problem SEO point of view. By the way I have placed the Rel= canonical tag in source page. its working fine but
On-Page Optimization | | docbeans0 -
Google ranking is HORRIBLE. Following SEOMoz suggestions and just can't climb.
First of all, the URL is stores.dhsequipment.com. In January, this online store switched from Homestead to Big Commerce. Since the store updated, we decided now is the time to update our product descriptions, URL's, title tags and meta descriptions. (For the first time, we had the ability to customize our URL's.) Product Description: I went through 2,500 products and updated the product description. I added an H1 & H2 to each description, and included pertinent information such as part numbers. Each product also received a new page title, meta description (which is usually the first line of the product description, don't know if this is bad or not) and a new URL, (which did redirect). Once I would complete a section, I would submit a new sitemap to Webmaster Tools. After a month and nothing happening, I started using SEOMoz which helped me rebuild some of my more important pages, such as the home page and main category pages such as: http://stores.dhsequipmentparts.com/stihl-ts420-parts/
On-Page Optimization | | pearldesign
http://stores.dhsequipmentparts.com/stihl-ts700-parts-stihl-ts800-parts/ I fetched these pages in Webmaster Tools after completion. However, it's been several weeks since and I'm still on page 4 or 5 in the SERPs. Just a little history on the store; this store has been in operation for more than 6 years. Previously, we ranked on page one for 75%+ of our products. My belief is because our URL's had history, probably more so than our competitors. I'm not sure what I should do. Business is super slow and we can't afford to wait much longer.0 -
Wordpress duplicate titles - can't find original title tags
I added new code to rewrite the page titles <title><?php wp_title(''); ?></title> But I can't find the normal title tags in the Header PHP file in editor so I now have duplicate titles tags in the source code This is the code - can't see what else would be titles? This is the website ... http://apexgenerators.co.uk/ <title><?php wp_title(''); ?></title> eFavIcon(); ?> eCSS(); ?> enabled('Theme')) { ?> http://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic,700italic" />
On-Page Optimization | | lauratagdigital0