Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 Customer Forums > Reseller Hosting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-09-2010, 01:38 PM
bbacarat bbacarat is offline
Newbie
 
Join Date: Jan 2010
Posts: 4
Unhappy Problem with my .htaccess

<<snip>>

I'm creating my first reseller account.
I want the domain to redirect to www.
I'm using a .htaccess file with code I found in the HostNine Knowledge Base!
(apparently out of date now!)

I've opened up notepad and pasted in the following code:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^mydomain\.org.uk
RewriteRule ^(.*)$ http://www.mydomain.org.uk/$1 [R=permanent,L]


I'm getting an error message in firefox:
"This 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"
Reply With Quote
  #2  
Old 02-09-2010, 04:36 PM
swefil2007 swefil2007 is offline
Junior Guru Wannabe
 
Join Date: Jul 2007
Posts: 89
Default

Yes I agree the knowledge base is outdated,
to re-direct you need to go to Cpanel, Domains, Redirect, you can use Http://, www. or just the domain, when you have completed the task the htaccess will be updated, hope this helps

JE
Reply With Quote
  #3  
Old 02-09-2010, 08:10 PM
primitiv primitiv is offline
Junior Guru Wannabe
 
Join Date: Jun 2007
Posts: 42
Default

RewriteEngine On
Options +FollowSymLinks

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule (.*) http://www.mydomain.org.uk/$1 [R=301,L]

- that should do it for you (hopefully).
Reply With Quote
  #4  
Old 02-10-2010, 04:45 PM
bbacarat bbacarat is offline
Newbie
 
Join Date: Jan 2010
Posts: 4
Default Nope that didn't work?

Now I'm getting the following error message:

Internal Server Error 500

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@avatartoys.org.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.



It's nothing to do with the way I'm creating the .htaccess file is it?
I'm using a macbook pro and I've creating the document in textedit.
Then saving it out as .html file then I rename it to .htaccess and upload it.
Reply With Quote
  #5  
Old 02-10-2010, 08:48 PM
primitiv primitiv is offline
Junior Guru Wannabe
 
Join Date: Jun 2007
Posts: 42
Default

Ummm, best to just edit it in notepad or whatever the equivalent is on a Mac.

You've obviously changed mydomain to whatever your domain is right (I'm guessing avatartoys)?

Make sure there are no erroneous line spaces at the end of the file (as in there are no returns at the bottom of the page).

Is there anything else in your .htaccess apart from the lines above?
Reply With Quote
  #6  
Old 02-10-2010, 08:56 PM
H9Ben
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by bbacarat View Post
Now I'm getting the following error message:

Internal Server Error 500

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@avatartoys.org.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.



It's nothing to do with the way I'm creating the .htaccess file is it?
I'm using a macbook pro and I've creating the document in textedit.
Then saving it out as .html file then I rename it to .htaccess and upload it.
As stated in the ticket the issue is actually with your wordpress install. You have WP installed on yourdomain.com rather then www.yourdomain.com. What this is doing is creating an infinite loop since the htaccess is trying to use www.yourdomain.com and WP is redirecting back to www.yourdomain.com

Once you edit your WP Setup to www.yourdomain.com and the .htaccess file you're good to go.
Reply With Quote
  #7  
Old 04-16-2010, 12:14 PM
bbacarat bbacarat is offline
Newbie
 
Join Date: Jan 2010
Posts: 4
Default Re:htaccess setup

When you say "Once you edit your WP setup" where exactly do you mean. What wordpress file requires me to edit it?

Cheers

Adam
Reply With Quote
Reply

Tags
.htaccess, redirect to www

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with htaccess/mod_rewrite OMT Shared Web Hosting 2 06-09-2009 02:24 PM
Php.ini instead of .htaccess redlogic Reseller Hosting 2 03-12-2008 11:24 AM
.htaccess to php.ini ??? redlogic Reseller Hosting 1 01-16-2008 10:02 PM
.htaccess ronin Shared Web Hosting 5 05-20-2007 08:17 PM


All times are GMT -5. The time now is 06:43 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.