.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
-
If I am using Lazy Load & Ajax Technology then how "tools.pingdom.com" will consider website performance?
Hello Experts, If I am using Lazy Load & Ajax Technology then how "tools.pingdom.com" will consider website performance? I am not using this technology but few of my competitors are using this technology but still there performance in pingdom tool worst than my ecommerce site Little bit confuse please help. Thanks! Wrights
On-Page Optimization | | wright3350 -
Website Updates
What's considered a safe number when it comes to making on-site seo changes/updates for pages of a website (refreshing copy, changing title tags, optimizing images, etc)? 1 a day? 5 a day? We need to make these changes but we don't want Google to freak out and have it have the opposite effect on our ranking.
On-Page Optimization | | SEOhughesm0 -
Does anyone know how I can see the original date of a link to my website?
Hello community, I'm trying to find the oldest links to my website/places that have referenced my company. By old, I'm looking for anything 2008 or older. I have access to a bunch of backlink tools, but they all log stuff based on when they discovered it, and we didn't begin using the tools until June 2013. I'm hoping there's some tool or some easy trick where I can quickly sort my links based on original date they linked to travelexinsurance.com. Thanks, Patrick
On-Page Optimization | | Patrick_G0 -
Is the HTML content inside an image slideshow of a website crawled by Google?
I am building a website for a client and i am in a dilemma whether to go for an image slideshow with HTML content on the slides or go for a static full size image on the homepage. My concern is that HTML content on the slideshow may not get crawled by Google and hence may not be SEO friendly.
On-Page Optimization | | aravinn0 -
Language for URLs on new international websites
We are due to launch our new site and it will be targeting an international market. We have setup these new sites in the following way www.website.com/fr/content-goes-here www.website.com/es/content-goes-here This has been done in conjunction with setting up the parameters in GWT and making sure it is optimised for the language itself, and that countries search engine. But our web dev team have said that the URLs at the moment will be in english and not the native language, so if you were on the french version of our site you would see the url in english and not french. Will this negatively affect the site for SEO, and who else would think it would be negative from a usability perspective? Any help is appreciated.
On-Page Optimization | | RyanCrawf19840 -
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 do a 301 Redirect in IIS 7 from http://www.freightmonster.com/index.html to http://freightmonster.com/index.html when I don't have a physical page to redirect?
I'm trying to get rid of my Rel Canonical links and use the 301 Redirect instead.
On-Page Optimization | | FreightBoy0 -
What is the best way to make use of internal anchor text links without appearing to be a 'spammy' webpage?
I've recently been spending some time going through all the content on our website, henstuff.com, adding internal anchor text links to product copy with the link following back to the product's generic catagory. I've been focusing on the search term 'hen party accessories', but have also been using 'hen do accessories' and 'hen night accessories'. I know that internal linking has value when it comes to SEO and rankings, but was keen to find roughly at what point usage of a certain search term for anchor links is seen as spam by the engines. Is there a certain formula to follow when it comes to internal anchor text links? You can see some examples at: http://www.henstuff.com/hen-night-accessories/hen-party-accessories/willy-bubbles http://www.henstuff.com/hen-night-accessories/hen-party-devil-horns/hen-night-pink-devil-horns Many thanks Oli
On-Page Optimization | | RobertHill1