.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 the best way to deal with creating a separate brand with it's own website when the main site already ranks well for the target keywords?
A client currently has a site that ranks well for a number of queries. They recently created a new site for a spin-off brand/company that they now want to focus on ranking for some of the keywords their original site already ranked for. What would be the best way to go about this without throwing away the existing authority and traffic the original site has for those queries?
On-Page Optimization | | P1WS_Sully0 -
Javascript(0) extension causing an excess of 404's
For some reason I am getting a duplicate version of my urls with /javascript(0) at the end. These are creating an abundance of 404 errors. I know I am not supposed to block JS files so what is the best way to block these? Ex: http://www.jasonfox.me/infographics/page/8/javascript(0) is a 404 http://www.jasonfox.me/infographics/page/8/ is not Thank you.
On-Page Optimization | | jasonfox.me0 -
Over-Optimized Website
I'm looking for advice for what you would start with if you were working on a website that was extremely over-optimized for 1 keyword. So, for example, I'm going to pretend this client is a dog trainer in Toronto (I can't publicly post the URL). I've read places that having exact-match anchor text links to inner pages in the footer of the site can cause problems and removing it has resulted in big ranking jumps. I'm looking to see if there are other big items that you would tackle first if this was your client. Some examples of things the site has: There is a page for dog training under their Services menu. However, internal links on their site link "dog training" to both the homepage and to this service page. Is that going to cause issues? The anchor text for internal linking is almost always the exact same word - "Dog Training". There is a banner that goes across the top of the site that appears on every page that says "Dog Training Toronto". I'm guessing I should remove that. Would the same keyword being overly used on every page cause confusion? Almost every image on his site is saved in the format "Dog Training Toronto". I'm looking to see if anyone has general tips on where to start with a site that has been over-optimized for 1 keyword. He actually has a ton of good content on his blog that gets a ton of traffic (because it's actually useful) so it's not that his content sucks - it's just been overly structured and SEO'd to death. I found a few articles on this but other than the footer advice I didn't find too many case studies of others that have run into this issue and done a few steps that actually worked.
On-Page Optimization | | ImprezzioMarketing0 -
Meta titles and description for subcategory pages in CMS websites
I have a CMS based site and for that I am getting duplicate page title and description error message, for my all sub-category pages. What can I do for this because write Meta title and description for each page for CMS based website is not possible.
On-Page Optimization | | 1akal0 -
Will ReDesigning my website negatively affect SEO?
I currently have a one page website which lists all the company information on one page [domain name is www. bwd . co . za]. It uses javascript for navigation. My challenge is that the layout is outdated and I would like to update it with a high quality WordPress theme which will not be a one-pager. Currently on Open Site Explorer the website has a domain authority of 30/100 and page authority of 41/100. I've worked hard to push the numbers to get to where they are hence I'm a bit concerned. Will re-designing my website negatively affect SEO?
On-Page Optimization | | bonganig0 -
Usability-question on 2 of my websites
Hi all, It has been a while since I have been in this forum, but that's normally a great sign 🙂 Anyway these days I'm work on a "face-lift" on a couple of my sites (www.krydsord.dk, www.bingoforum.dk and www.alutagrender.dk), but also this face-lift should be more than just that. Hopefully it will help the usability to be better, and as a result of that - I hope it will make it easier for my visitors to easily find what they are looking for. The question is: I would like to ad, say, 25 words of description (mouse-over) in my top menu buttons. Why? Because, I believe that it's a possible problem that the menu just says "krydsord" (crosswords) in stead of a describing text saying something about "Push this button and you will see a complete list of all the cross words on Krydsord.dk). This way, I get the chance to add more text (for the Search Engines) and to guide my visitors in a way that I'm not capable of with the limitations my top menus give me as they are at this moment. Naturally, my visitors should be able to easily decline this "extra information", once they have got it once. Is this completely way off, or do you like the idea? More specifically: Will this be annoying for the visitors, will it have any positive effect on SEO matters? Actually I got partly inspired during a SEOmoz webinar (http://www.seomoz.org/webinars/designing-for-seo), even though it's not exactly what they are talking about in thwe webinar. For anybody who are curious (or just need to kill some time), you can have a look from 19:00 and watch it for about two minutes. Thanks a lot! Nicolai
On-Page Optimization | | MPO0 -
How do I switch my website to www.mydomain?
I'm having canonical URL problems. I keep trying to set everything to www.mydomain.com, but I'm using wordpress and my site keeps either disappearing completely or giving me an infinite loop error. I've tried changing my main wordpress setting, whether I have canonical URLs turned on, my .htaccess file... Could this be an issue with either my host or my domain registrar? Any ideas how I can fix it?
On-Page Optimization | | lauragee0 -
I need quality backlinks. Do they need to be similar to company website?
Our website seems to be well optimized. However I need to find more quality backlinks. I am having a hard time with this. Do backlinks have to related to the company? The reason I ask is because I can receive some links, but they do not relate to our company. BUT sometimes we have customers come to our facility and we book them a local hotel room and send them to near by restaurants. Is it ok to have local restaurants and local hotels links on our website and have them link to ours, on a page for customer visits. OR any other tips on receiving quality backlinks?
On-Page Optimization | | hfranz0