.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
-
Instructional Videos on Separate Websites
Am I doing this correctly? We have 3 websites and shoot a lot of instructional videos on how to use our products. I build a webpage for the video and put it on all three websites, using rel="canonical" on 2 of the videos pages, pointing to the single most important page, is this the right method? TY
On-Page Optimization | | KevnJr
KJr PS: I also do this for press releases.0 -
Is it safe to add a Backlink on all pages on another website?
I got a few old websites and I would like to add a do-follow backlink on all pages linking to a new website. Is this SEO safe to do so?
On-Page Optimization | | hakhan2010 -
Are the prepositions and separate letters in URL bad for website optimization?
Is it ok for website optimization to use prepositions and separate letters in URL ? Examples: -i-series ; -salad-with-avocado etc.
On-Page Optimization | | adrecom0 -
Review rich snippet with reviews hosted on customer feedback company's website?
Is it possible to enable rich snippets for reviews that are not visible on the page in question? A restaurant's Wordpress website mentions the average rating but the actual customer feedback and reviews are displayed on a page on the website of the feedback company. Would it be enough to implement a small widget (displays star rating, number of reviews and links to the review page) and add microdata/J-SON to convince search engines that the reviews are legit? Thanks in advance! Bas
On-Page Optimization | | SEO-Bas0 -
Are Hotel Vanity Websites considered a Doorway Page to brand.com?
I work for a large 3rd party management company and we use vanity websites to help us market our hotels. They provide us the ability to better manage our content as well as provide value to our customers versus the brand site. An example would be Vanity: http://www.hiltonmonterey.com/Brand.com: http://hiltongardeninn3.hilton.com/en/hotels/california/hilton-garden-inn-monterey-MRYMHGI/index.htmlBased on my reading of Google's guidelines I am concerned that our vanity site may be interpreted as such. Please advise if this is the case.
On-Page Optimization | | JohnJimenez0 -
How can I maintain my website's authroity if I change the domain name?
I have 2 sites. Site A is doing well and growing, but has a low Domain Authority. Site B is older, has a higher authority but I want to retire it as the site's topic is well dated. Can I move all of my content on site A, to site B, change site B's name to Site A's name keep its higher authority and add all of the content and 301 redirect from site A to site B? Whew, Thanks for any thoughts, Jeff Strassman
On-Page Optimization | | biggieshaws0 -
Rewrite URL for big website
My website is currently have over 1000 000 links indexed by Google , i'm going to rewrite all of these links, is this crazy ? Can someone give me a checklist to avoid going wrong way ? My website: http://www.webtretho.com/forum/ My current url format: webtretho.com/forum/f[forum_id]/[thread-title-thread_id/ Ex: Old URL: http://www.webtretho.com/forum/f90/chia-se-dau-hieu-mang-thai-1357342-new/ New URL: http://www.webtretho.com/forum/chuan-bi-mang-thai/chia-se-dau-hieu-mang-thai-1357342-new/
On-Page Optimization | | firstjames0 -
One site with one product or multi product website
Lets suppose that i have 10 NICHE products under me. Should i make one site for each product or one site overall. If i make 1 site for each product i get several advantages Domain name has keyword Title tags etc will be dedicated to one keyword only. Disavantage - Backlinking for each domain will become tougher. Advantage of one site onl Good management Seo / backlinks becomes easier Blogging to attract traffic becomes easier Can target a lot of keywords through business blogging Disadvantages Can become messy with unimportant keywords gaining importance. SO WHAT DO YOU THINK??? One site per product or One site for all products?
On-Page Optimization | | hith2340