301 Redirect in htaccess breaks site

We have just implemented a new WordPress site to replace our old site (same domain name as old site).

The old site was just an html site, so the homepage was index.htm

To redirect any links to the old site's homepage of index.htm, we set up the following line in the new site's htaccess file:

Redirect 301 /index.htm /

When we then try to visit the site normally using just the domain name, we get the following error:

"The page isn't redirecting properly.
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept cookies."

This does not occur on our test server where we have the same web code, so we're at a loss at to what could be causing this error.

Any thoughts?
LVL 1
rascalAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

eemitCommented:
Try to add this abowe the line:
# BEGIN WordPress

# Old page redirects
Redirect permanent /index.htm http://www.your-domain.tld/

Open in new window


Allso to ensure the server finds your 404 page, add the following line to your .htaccess file below the line:
# END WordPress

# Custom 404 Page
ErrorDocument 404 /index.php?error=404

Open in new window

0
DrDamnitCommented:
.htm files take precedence over the .php files. To get Wordpress to work, you need to redirect to index.php so that Wordpress will load.

Also, make sure that your .htm file is no longer in the root directory.
0
rascalAuthor Commented:
DrDamnit - there is no index.htm file on the site - it's a wordpress blog site where only index.php exists.
0
Fundamentals of JavaScript

Learn the fundamentals of the popular programming language JavaScript so that you can explore the realm of web development.

DrDamnitCommented:
What's the actual site?  I want to get the real headers to see what's going on.
0
rascalAuthor Commented:
0
DrDamnitCommented:
Try:
Redirect 301 /index.htm http://www.globalpartnerships.org/
0
eemitCommented:
@DrDamnit
Haven't I already posted this?

@rascal
Try this:
RewriteRule /.* http://www.globalpartnerships.org/ [R=301,L]

Open in new window

0
rascalAuthor Commented:
eemit - won't your rule redirect every address to http://www.globalpartnerships.org? We need to redirect certain addresses only.
0
DrDamnitCommented:
@rascal:

Have you tried any of the suggestions yet?
0
eemitCommented:
You can use also this:
Redirect permanent /imprint.html http://www.globalpartnerships.org/imprint/
Redirect permanent /contactus.html http://www.globalpartnerships.org/contact/
Redirect permanent /ourservices.html http://www.globalpartnerships.org/services/

Open in new window

0
rascalAuthor Commented:
@DrDamnit, yes - I tried the following suggestion but it didn't work:
Redirect 301 /index.htm http://www.globalpartnerships.org/
But it resulted in the following error:
This page can't be displayed
•Make sure the web address http://www.globalpartnerships.org is correct.
•Look for the page with your search engine.
•Refresh the page in a few minutes.

I also tried:
RewriteRule /.* http://www.globalpartnerships.org/ [R=301,L]
But it caused the site to go into an endless loop
0
DrDamnitCommented:
Can you provide a screenshot of your home directory? You've got something else going on...
0
rascalAuthor Commented:
Directory listing of live server
0
DrDamnitCommented:
What are the contents of .htaccess?
0
rascalAuthor Commented:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# Note: Do not alter the lines above (WordPress)
# Note: You must log into the web host and perform an htaccess sync after each update.

# 301 Redirect Old Files
Redirect 301 /newsletter /learn-more/newsletters/
Redirect 301 /boh /business-of-hope-luncheon//
Redirect 301 /partnertrip /get-involved/travel/
Redirect 301 /faq /about-gp/faq/
Redirect 301 /health /impact-areas/health-services/
Redirect 301 /greentech /impact-areas/green-technology/
Redirect 301 /rural /impact-areas/rural-livelihoods/
Redirect 301 /microent /impact-areas/microentrepreneurship/
Redirect 301 /partners /our-investments/our-partners/
Redirect 301 /map /about-gp/where-we-work/
Redirect 301 /donate /get-involved/donate/
Redirect 301 /signup /get-involved/stay-connected/
Redirect 301 /bohtc /table-captain-signup/
Redirect 301 /blog /learn-more/news-insights/

# 301 Redirects: Aug 27, 2013
Redirect 301 /sections/aboutus /about-gp/about-us/
Redirect 301 /sections/newsinfo /learn-more/news-insights/
Redirect 301 /sections/getinvolved /get-involved/get-involved/
Redirect 301 /sections/impact /impact-areas/impact-areas-overview/
Redirect 301 /sections/strategy /our-investments/our-investment-funds/
Redirect 301 /sections/what /our-investments/investor-reports/
Redirect 301 /sections/ourpartners /our-investments/our-partners/
Redirect 301 /ind-1.html /
Redirect 301 /index.asp /
Redirect 301 /player.swf /
Redirect 301 /tour /
Redirect 301 /directions.htm /contact-us/
Redirect 301 /partnertrips /get-involved/travel/
# Redirect 301 /index.htm http://www.globalpartnerships.org/
Redirect 301 /tablecaptain /
Redirect 301 /forum /
# Redirect 301 /learn-more /learn-more/news-insights/
# Redirect 301 /get-involved /get-involved/get-involved/

Open in new window

0
DrDamnitCommented:
Put the redirects above the WordPress stuff.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rascalAuthor Commented:
@DrDamnit, I tried putting the redirects above the WordPress stuff, but got the same error. There must be something on the web host side that is causing this?
0
DrDamnitCommented:
Who is your hosting provider?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.